Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Applets | Applets Bash support
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)
Applets | Applets

Subjects Author Language Messages Last message
[Locked] Bash support
Reali$t English 8 fabounet [Read]
14 September 2011 à 12:12

Reali$t, Saturday 10 September 2011 à 11:38


Subscription date : 10 September 2011
Messages : 7
Attempting to write an applet using Bash I tried to look how 'demo_bash' and 'WindowsKiller' work. Unfortunately they do nothing after installation. Neither any reaction on clicks nor text and menu appeared. The same CD behavior took place with my applet though icon appear and disappear if apllet is turned on and off in CD config. My script works when call from Gnome terminal (DBus SetQuickInfo shows text on applet icon). But I cannot get the same result calling my script or modified 'demo_bash' from CD. It looks like CD cannot run any Bash script at all (hope it's not so)

Is anybody here who has these two Bash based applets ('demo_bash' and 'WindowsKiller') working?

Thank you very much in advance for your help and testing.

---

CD 2.4.0~0beta3 with OpenGL on Ubuntu 10.04 Lucid (Gnome/Mutter)

matttbe, Saturday 10 September 2011 à 12:34


Subscription date : 24 January 2009
Messages : 12573
Hello,

This is strange because our WindowsKiller applet works well for me (CD 2.4.0~0rc1). Can you check if you're using the latest version? => http://bazaar.launchpad.net/~cairo-dock-team/cairo-dock-plug-ins-extras/third-party/files
Or you can download all applets with bzr:
bzr checkout --lightweight lp:cairo-dock-plug-ins-extras
and copy the content of this new directory into ~/.config/cairo-dock/third-party. (or launch the script "install_applet.sh" but it will clean your third-party directory and make symbolic links between these two directories).

Reali$t, Saturday 10 September 2011 à 14:46


Subscription date : 10 September 2011
Messages : 7
Thanks for your reply, matttbe

I have updated my configuration to your one but it hasn't solved the problem

Of course the plugins are installed into ~/.config/cairo-dock/third-party, they are available from CD config menu, icons appear in a dock and disappear but nothing more...

I would appreciate any ideas

SQP, Saturday 10 September 2011 à 16:39


Subscription date : 03 July 2010
Messages : 1081
You need to enable the DBus plug-in as those external applications need it to talk with the dock (all their dock interactions are sent this way)

I hope this is the problem as the WindowKiller applet works fine for me.
You can test it with commands available on the Control_your_dock_with_DBus page, like :
dbus-send --session --dest=org.cairodock.CairoDock /org/cairodock/CairoDock org.cairodock.CairoDock.ShowDialog string:"Cairo-Dock is great \!" int32:5 string:""


Could you tell what sort of applet you are trying to make ?

Edit : I forgot you had some answer when you launched manually the script.
Looks like a strange problem. Could you check if you have the applet process running ? It should be the applet name like demo_bash or WindowsKiller. I sometimes had it crashing (when developing), so the icon is still here (managed on the dock side), but have no program to receive DBus events.

matttbe, Saturday 10 September 2011 à 17:07


Subscription date : 24 January 2009
Messages : 12573
Or can you launch the dock from a terminal, then enable WindowKiller applet (don't forget to use the latest version) and paste the output messages here.

Reali$t, Saturday 10 September 2011 à 21:17


Subscription date : 10 September 2011
Messages : 7
Many thanks to you, matttbe, for your tip to run CD in terminal!

As it happens quite often, the problem was in permissions.
WindowsKiller and WindowsKiller.sh files had no 'execute access' rights (it's natural ) and after
chmod a+x ~/.config/cairo-dock/third-party/WindowsKiller/WindowsKiller
chmod a+x ~/.config/cairo-dock/third-party/WindowsKiller/WindowsKiller.sh

I've got it working!

So, it seems to me it might be useful to mention about this situation somewhere in Wiki or in applet's Readme file.

SQP, thanks for your participation too, DBus works fine, so I hope I can make an applet showing temperature of hard disk drives

Reali$t, Saturday 10 September 2011 à 21:36


Subscription date : 10 September 2011
Messages : 7
And there are several mistakes in /usr/share/cairo-dock/plug-ins/Dbus/CDBashApplet.sh file

In lines 39 - 47 (from EMBLEM_BOTTOM_RIGHT till EMBLEM_LEFT assingment) spaces around '=' are wrong, Bash interprets names as commands and says about errors.

matttbe, Saturday 10 September 2011 à 23:21


Subscription date : 24 January 2009
Messages : 12573
And there are several mistakes in /usr/share/cairo-dock/plug-ins/Dbus/CDBashApplet.sh file

In lines 39 - 47 (from EMBLEM_BOTTOM_RIGHT till EMBLEM_LEFT assingment) spaces around '=' are wrong, Bash interprets names as commands and says about errors.
Oh, this is strange! I guess it's a wrong copy/paste.
Thank you, it's fixed on bzr (rev 2095)!

fabounet, Wednesday 14 September 2011 à 12:12


Subscription date : 30 November 2007
Messages : 17118
I guess it's a wrong copy/paste.

you guess it right

Applets | Applets

Subjects Author Language Messages Last message
[Locked] Bash support
Reali$t English 8 fabounet [Read]
14 September 2011 à 12:12


Glx-Dock / Cairo-Dock List of forums Applets | Applets Bash support 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.