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
1=== modified file 'SubDock/SubDock'
2--- SubDock/SubDock 2010-05-16 23:35:17 +0000
3+++ SubDock/SubDock 2010-05-17 20:14:26 +0000
4@@ -41,7 +41,7 @@
5
6
7 #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..
8-os.mkdir("/tmp/Subdock/")
9+
10 #this a try to put my icons in a
11 #remote_object = bus.get_object("org.cairodock.CairoDock",
12 # "/org/cairodock/CairoDock")
13@@ -51,6 +51,14 @@
14 sub_icons_object = bus.get_object("org.cairodock.CairoDock", applet_path+"/sub_icons")
15 mySubIcons = 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.
16
17+if os.path.isdir("/tmp/Subdock/") == False :
18+ os.mkdir("/tmp/Subdock/")
19+ print "Pas de dossier, dossier cree..."
20+elif os.path.isdir("/tmp/Subdock/") == True :
21+ print "Yeah un dossier! On a du surement crashe le dock... ^^"
22+
23+
24+
25 ##################################
26 ### callbacks on the main icon ###
27 ##################################

Subscribers

People subscribed via source and target branches

to all changes: