projects
/
platform
/
upstream
/
ibus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1c1ea2
)
Makedirs if ~/.config/autostart is not exist.
author
Huang Peng
<shawn.p.huang@gmail.com>
Mon, 25 Aug 2008 03:26:09 +0000
(11:26 +0800)
committer
Huang Peng
<shawn.p.huang@gmail.com>
Mon, 25 Aug 2008 03:26:09 +0000
(11:26 +0800)
setup/main.py
patch
|
blob
|
history
diff --git
a/setup/main.py
b/setup/main.py
index
f3e0f54
..
67812c7
100644
(file)
--- 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