Skip to content

Commit

Permalink
fix: fix variable type (XDG_CONFIG_DIR > XDG_CONFIG_HOME)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilez0 committed Jun 20, 2024
1 parent 5b44c3f commit 854e366
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/MainWindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def check_live():
f = open("/proc/cmdline", "r").read()
return "boot=live" in f

config_dir = os.getenv("XDG_CONFIG_DIR") if os.getenv("XDG_CONFIG_DIR") else str(Path.home()) + "/.config/"
config_dir = os.getenv("XDG_CONFIG_HOME") if os.getenv("XDG_CONFIG_HOME") else str(Path.home()) + "/.config/"

autostart_file = (
config_dir + "/autostart/tr.org.pardus.pardus-gnome-greeter.desktop"
Expand Down
2 changes: 1 addition & 1 deletion src/Pages/Theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def fun_change_theme(toggle_button, theme, is_special=False):

def fun_check_special_themes():
themes = ["pardus-yuzyil"]
config_dir = os.getenv("XDG_CONFIG_DIR") if os.getenv("XDG_CONFIG_DIR") else str(Path.home()) + "/.config/"
config_dir = os.getenv("XDG_CONFIG_HOME") if os.getenv("XDG_CONFIG_HOME") else str(Path.home()) + "/.config/"
lang = os.getenv("LANG")[0:2]
desktop_env = utils.desktop_env()
user_theme_json = (
Expand Down

0 comments on commit 854e366

Please sign in to comment.