Merge lp:~taiebot65/cairo-dock-plug-ins-extras/Subdock-2 into lp:~cairo-dock-team/cairo-dock-plug-ins-extras/third-party

Proposed by taiebot65
Status: Merged
Merged at revision: 69
Proposed branch: lp:~taiebot65/cairo-dock-plug-ins-extras/Subdock-2
Merge into: lp:~cairo-dock-team/cairo-dock-plug-ins-extras/third-party
Diff against target: 27 lines (+9/-1)
1 file modified
SubDock/SubDock (+9/-1)
To merge this branch: bzr merge lp:~taiebot65/cairo-dock-plug-ins-extras/Subdock-2
Reviewer Review Type Date Requested Status
Cairo-Dock Devs Pending
Review via email: mp+25469@code.launchpad.net

Description of the change

Just add a check to the tmp folder before creating it.. better support

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'SubDock/SubDock'
--- SubDock/SubDock 2010-05-16 23:35:17 +0000
+++ SubDock/SubDock 2010-05-17 20:14:26 +0000
@@ -41,7 +41,7 @@
4141
4242
43#On cree un dossier temporaire dans lequel on va mettre les icones Attention si on #crash le dock cette applet ne marchera pas car ce dossier existe..43#On cree un dossier temporaire dans lequel on va mettre les icones Attention si on #crash le dock cette applet ne marchera pas car ce dossier existe..
44os.mkdir("/tmp/Subdock/")44
45#this a try to put my icons in a 45#this a try to put my icons in a
46#remote_object = bus.get_object("org.cairodock.CairoDock",46#remote_object = bus.get_object("org.cairodock.CairoDock",
47# "/org/cairodock/CairoDock")47# "/org/cairodock/CairoDock")
@@ -51,6 +51,14 @@
51sub_icons_object = bus.get_object("org.cairodock.CairoDock", applet_path+"/sub_icons")51sub_icons_object = bus.get_object("org.cairodock.CairoDock", applet_path+"/sub_icons")
52mySubIcons = dbus.Interface(sub_icons_object, "org.cairodock.CairoDock.subapplet") # this object represents the list of icons contained in our sub-dock, or in our desklet. We'll add them one by one later, giving them a unique ID, which will be used to identify each of them.52mySubIcons = dbus.Interface(sub_icons_object, "org.cairodock.CairoDock.subapplet") # this object represents the list of icons contained in our sub-dock, or in our desklet. We'll add them one by one later, giving them a unique ID, which will be used to identify each of them.
5353
54if os.path.isdir("/tmp/Subdock/") == False :
55 os.mkdir("/tmp/Subdock/")
56 print "Pas de dossier, dossier cree..."
57elif os.path.isdir("/tmp/Subdock/") == True :
58 print "Yeah un dossier! On a du surement crashe le dock... ^^"
59
60
61
54##################################62##################################
55### callbacks on the main icon ###63### callbacks on the main icon ###
56##################################64##################################

Subscribers

People subscribed via source and target branches

to all changes: