Merge branch 'root-bailout' into 'master'
Prevent poezio from being run as root See merge request poezio/poezio!20
This commit is contained in:
commit
738dfe0e9a
1 changed files with 5 additions and 0 deletions
|
@ -72,6 +72,11 @@ def main():
|
|||
"""
|
||||
Entry point.
|
||||
"""
|
||||
|
||||
if os.geteuid() == 0:
|
||||
sys.stdout.write("Please do not run poezio as root.\n")
|
||||
sys.exit(0)
|
||||
|
||||
sys.stdout.write("\x1b]0;poezio\x07")
|
||||
sys.stdout.flush()
|
||||
from poezio import config
|
||||
|
|
Loading…
Reference in a new issue