2022-07-19 03:58:13 +00:00
|
|
|
diff --git a/src/main.py b/src/main.py
|
2022-07-27 02:16:16 +00:00
|
|
|
index 8aadfe0..d2c5d4c 100644
|
2022-07-19 03:58:13 +00:00
|
|
|
--- a/src/main.py
|
|
|
|
+++ b/src/main.py
|
2022-07-27 02:16:16 +00:00
|
|
|
@@ -369,5 +369,10 @@ class AdwcustomizerApplication(Adw.Application):
|
2022-07-19 03:58:13 +00:00
|
|
|
|
|
|
|
def main(version):
|
|
|
|
"""The application's entry point."""
|
2022-07-27 02:16:16 +00:00
|
|
|
- app = AdwcustomizerApplication(version)
|
2022-07-19 03:58:13 +00:00
|
|
|
+ if not os.getenv("XDG_CONFIG_HOME"):
|
|
|
|
+ os.environ["XDG_CONFIG_HOME"] = os.path.expanduser("~/.config")
|
|
|
|
+ app_config = os.path.join(os.environ["XDG_CONFIG_HOME"], "adwcustomizer")
|
|
|
|
+ os.makedirs(app_config, exist_ok=True)
|
|
|
|
+
|
2022-07-27 02:16:16 +00:00
|
|
|
+ app = AdwcustomizerApplication(version)
|
2022-07-19 03:58:13 +00:00
|
|
|
return app.run(sys.argv)
|