How to add a command in the lxpanel menu plugin ?
Posted: Mon Mar 28, 2011 3:19 pm
Hello !
I want to add a lockscreen command to the lxpanel menu plugin like this :
~/.config/lxpanel/Lubuntu/panels
Plugin {
type = menu
Config {
image=/usr/share/icons/hydroxygen/22x22/places/start-here.png
system {
}
separator {
}
item {
image=system-run
command=run
}
separator {
}
item {
name=Lock screen
image=gnome-lockscreen
command=gnome-screensaver-command --lock
}
item {
image=gnome-logout
command=logout
}
}
}
I can see the new item (name and icon) but the command doesn't work (this command works in a terminal, with the .desktop file in /usr/share/applications).
Any idea ?
Thank you in advance for your answer and have a nice day !
I want to add a lockscreen command to the lxpanel menu plugin like this :
~/.config/lxpanel/Lubuntu/panels
Plugin {
type = menu
Config {
image=/usr/share/icons/hydroxygen/22x22/places/start-here.png
system {
}
separator {
}
item {
image=system-run
command=run
}
separator {
}
item {
name=Lock screen
image=gnome-lockscreen
command=gnome-screensaver-command --lock
}
item {
image=gnome-logout
command=logout
}
}
}
I can see the new item (name and icon) but the command doesn't work (this command works in a terminal, with the .desktop file in /usr/share/applications).
Any idea ?
Thank you in advance for your answer and have a nice day !