hardcode-tray-git/doasuser.patch
2023-05-11 23:20:18 -05:00

13 lines
675 B
Diff

diff --unified --recursive --text --color hardcode-tray.orig/const.py.in hardcode-tray.new/const.py.in
--- hardcode-tray.orig/const.py.in 2023-05-04 15:16:47.519709571 -0500
+++ hardcode-tray.new/const.py.in 2023-05-04 15:19:08.596711509 -0500
@@ -24,7 +24,7 @@
from HardcodeTray.tools import detect_de, get_themes
DB_FOLDER = path.join("@DATA_DIR@", "database", "")
-USERNAME = getenv("SUDO_USER") or getenv("USER")
+USERNAME = getenv("SUDO_USER") or getenv("DOAS_USER") or getenv("USER")
USERHOME = path.expanduser("~" + USERNAME)
BACKUP_FOLDER = path.join(USERHOME, ".config", "Hardcode-Tray", "")
CONFIG_FILE = path.join(USERHOME, ".config", "hardcode-tray.json")