aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xayatana-settings7
1 files changed, 6 insertions, 1 deletions
diff --git a/ayatana-settings b/ayatana-settings
index 7daae0a..78db62a 100755
--- a/ayatana-settings
+++ b/ayatana-settings
@@ -226,7 +226,12 @@ class AyatanaSettings:
else:
'''
- sPath = '~/.config/autostart/ayatana-indicator-{}.desktop'.format(sIndicator)
+ sAutostartFolder = '~/.config/autostart'
+ pAutostartFolder = pathlib.Path(sAutostartFolder).expanduser()
+ if not pAutostartFolder.exists():
+ pAutostartFolder.mkdir(parents=True)
+
+ sPath = '{autostart}/ayatana-indicator-{indicator}.desktop'.format(autostart=sAutostartFolder, indicator=sIndicator)
pPath = pathlib.Path(sPath).expanduser()
if not pPath.exists():