summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2010-04-23 00:58:06 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2010-04-23 00:58:06 +0200
commitad22f8ddd205c8110ffa5b2dae4f5d1fc2c21e87 (patch)
tree171be317d2ca0295ee4ab396c8528486a8e4fecf
parentd89a5d18378a79b4f9fb6b6738f2a5e008539a3c (diff)
downloadportato-ad22f8ddd205c8110ffa5b2dae4f5d1fc2c21e87.tar.gz
portato-ad22f8ddd205c8110ffa5b2dae4f5d1fc2c21e87.tar.bz2
portato-ad22f8ddd205c8110ffa5b2dae4f5d1fc2c21e87.zip
Reset HOME to /root for root
Diffstat (limited to '')
-rw-r--r--portato/constants.py4
1 files changed, 4 insertions, 0 deletions
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")