Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Tips and Tricks | Trucs et Astuces Cairo-Dock DBus issues
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Tips and Tricks | Trucs et Astuces

Subjects Author Language Messages Last message
[Locked] Cairo-Dock DBus issues
Guest English 6 fabounet [Read]
17 May 2011 à 16:39

Guest, Wednesday 11 May 2011 à 16:57

Is there a way to remove a launcher from the dock that was added via the dbus method CreateLauncherFromScratch? I see the RemoveLauncher() method but it seems to expect the path to a desktop file.

I am also experiencing difficulty in getting the Reboot() method via dbus to work. I don't receive any errors but the dock does not reload. Is this a known issue or is there some trick to getting it to relaod?

Thank you.

matttbe, Wednesday 11 May 2011 à 22:43


Subscription date : 24 January 2009
Messages : 12573
I see the RemoveLauncher() method but it seems to expect the path to a desktop file
Yes, you can specify the name of this desktop file which is the number of the dock + the name, e.g. "01gnome-terminal" or "01geany.desktop" if you prefer...

I am also experiencing difficulty in getting the Reboot() method via dbus to work. I don't receive any errors but the dock does not reload. Is this a known issue or is there some trick to getting it to relaod?
This command works fine for me:
dbus-send --session --dest=org.cairodock.CairoDock /org/cairodock/CairoDock org.cairodock.CairoDock.Reboot

Guest, Thursday 12 May 2011 à 18:42

I just upgraded to 2.3 and the Reboot() seems to be working as expected now.

I am still having difficulty (even in the new version) figuring out how to remove a launcher that I added dynamically via dbus and the CreateLauncherFromScratch() method. There does not appear to be a dbus method specific for removing launchers that were added to the dock in this manner. Running the Reboot() command removes ALL launchers added to the dock in this manner. but I would like to have the ability to dynamically add several launchers and subsequently remove specific launchers including those added from scratch.

Thanks.

matttbe, Friday 13 May 2011 à 11:59


Subscription date : 24 January 2009
Messages : 12573
Running the Reboot() command removes ALL launchers added to the dock in this manner.
ok there is maybe a bug because these launcher are saved when you quit the dock I think. But is it not much interesting to register a custom applet? In fact, why do you want to add a launcher?

fabounet, Friday 13 May 2011 à 13:34


Subscription date : 30 November 2007
Messages : 17118
oh I see, that's because the CreateLauncherFromScratch doesn't create a .desktop file
so no way to remove it then.
the RemoveLauncher method should maybe look for such launchers if it doesn't find a desktop file.
I'll think about it, thanks.

by the way, may I ask what is this for? maybe it would be easier for you to make a small applet ?

Guest, Tuesday 17 May 2011 à 15:47

Perhaps I have a misunderstanding of the way launchers and applets were designed to be used with cairo-dock. I will dive into the documentation and examples for applets and see if they are more appropriate for what I am trying to do.

With respect to my current project, I am trying to use cairo-dock (and other custom configs/software) to create a custom linux exnvironemnt. The cairo-dock portion is being used to support a capability similar to roaming profiles. I have a base cairo-dock configuration for all users and then depending on the users' roles and their previously saved configurations I want to be able to dynamically create the cairo-dock for the individual user regardless of which workstation he/she logs into.

For example, one of the applications supported in the custom environment is rdesktop that connects users (again based on their role) to various Windows workstations/servers. The server sends the client a list of accessible windows machines to access via rdesktop. I then take that list and dynamically create launchers for each machine the user has access to. In some cases I only want the user to have access to an rdesktop for a given period of time after which I want to remove access and destroy the launcher.

There are probably smarter ways to go about this but I have already spent a bunch of time on the implementation of the system and its supporting network. The cairo-dock portion is mainly supporting usability and providing eye candy.

fabounet, Tuesday 17 May 2011 à 16:39


Subscription date : 30 November 2007
Messages : 17118
ok I see.
at first I thought you could just copy a set of .desktop files into the ~/.config/caio-dock/current_theme/launchers folder
but it seems too much dynamic for that.

so indeed you can use the method tou tried, but I need to fix it then (I've done it already, not pushed yet on the dev branch)
or you may consider making a small applet, to be able to add the icons in a sub-dock for instance.
both solutions are ok.

I'll push my fix asap (you will need the weekly package then, or compile the dock from our script)

Tips and Tricks | Trucs et Astuces

Subjects Author Language Messages Last message
[Locked] Cairo-Dock DBus issues
Guest English 6 fabounet [Read]
17 May 2011 à 16:39


Glx-Dock / Cairo-Dock List of forums Tips and Tricks | Trucs et Astuces Cairo-Dock DBus issues Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.