Re: homemade launcher in lxpanel
Originally Posted by
dawnlove
to get launcher to both open and close I need two Exec='s
You shouldn't: the command "eject -T" is supposed to open the tray if it's closed and vice-versa.
Originally Posted by
dawnlove
I've managed to make a launcher in /usr/share/applications. (lubuntu 11.4) to open/close optical drive. But it will only work if you open "/usr/share/applications" and click on it. It does not show up in menu and of course I can't choose it in lxpanel. Any help would be great
this is my launcher
[Desktop Entry]
Name=eject
Type=Application
Comment=eject close
Icon=/home/dove/icons/eject.png
Exec=eject
Exec=eject -T
Categories=Utility;
#NoDisplay=true
Your above .desktop file works nicely for me, with only one Exec:
Code:
[Desktop Entry]
Name=eject
Type=Application
Comment=eject close
Icon=/home/jc/kk/mete-saca.png
#Exec=eject
Exec=eject -T
Categories=Utility;
#NoDisplay=true
Apart from the evident icon change, my file is /usr/share/applications/eject.desktop, the owner is set to root, and the permissions are rw for the ownwer, nothing for everybody else. And not executable.
The icon appears in my lxde menu (using lubuntu 11.04 here), under accesories, and works nicely as expected. Hope some detail in the above will help you.
Anyway: if you want to have this function at hand, ¿shouldn't be better to assign it to a keyboard shorcut? In Lubuntu you have to edit manually a file for that, which is
Code:
~/.config/openbox/lubuntu-rc.xml
. I think you'll figure out how to do it looking at other shorcuts (look for "<keyboard>" in that file). If you like the idea and have any trouble, please come back to ask
JC
What's even more important than free software? - OPEN FORMATS.
Bookmarks