diff options
author | Huang Peng <shawn.p.huang@gmail.com> | 2008-08-25 11:26:09 +0800 |
---|---|---|
committer | Huang Peng <shawn.p.huang@gmail.com> | 2008-08-25 11:26:09 +0800 |
commit | 4036e16e79183d314f77e565e2727f6627aaedf2 (patch) | |
tree | 9349648821149191bb514613e157c8bc3143d10f /setup | |
parent | d1c1ea222a0dcfd966ccb6fa51f348f80e2e1a6f (diff) | |
download | ibus-4036e16e79183d314f77e565e2727f6627aaedf2.tar.gz ibus-4036e16e79183d314f77e565e2727f6627aaedf2.tar.xz ibus-4036e16e79183d314f77e565e2727f6627aaedf2.zip |
Makedirs if ~/.config/autostart is not exist.
Diffstat (limited to 'setup')
-rw-r--r-- | setup/main.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/setup/main.py b/setup/main.py index f3e0f54..67812c7 100644 --- a/setup/main.py +++ b/setup/main.py @@ -382,6 +382,10 @@ class Setup(object): return True def __checkbutton_auto_start_toggled_cb(self, button): + auto_start_dir = path.join(BaseDirectory.xdg_config_home, "autostart") + if not path.isdir(auto_start_dir): + os.makedirs(auto_start_dir) + link_file = path.join(BaseDirectory.xdg_config_home, "autostart/ibus.desktop") ibus_desktop = path.join(os.getenv("IBUS_PREFIX"), "share/applications/ibus.desktop") # unlink file |