diff options
-rw-r--r-- | poezio/poezio.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/poezio/poezio.py b/poezio/poezio.py index 05c8ceed..82403fdb 100644 --- a/poezio/poezio.py +++ b/poezio/poezio.py @@ -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 |