From ad22f8ddd205c8110ffa5b2dae4f5d1fc2c21e87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Fri, 23 Apr 2010 00:58:06 +0200 Subject: Reset HOME to /root for root --- portato/constants.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/portato/constants.py b/portato/constants.py index a8e930c..059017e 100644 --- a/portato/constants.py +++ b/portato/constants.py @@ -50,6 +50,10 @@ These should be set during the installation. import os from os.path import join as pjoin +# ktsuss does not reset this correctly +if os.getuid() == 0: + os.environ["HOME"] = "/root" + # icons ICON_DIR = "icons/" APP_ICON = pjoin(ICON_DIR, "portato-icon.png") -- cgit v1.2.3