summaryrefslogtreecommitdiff
path: root/portato
diff options
context:
space:
mode:
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")