Code: Select all
/etc/xdg/lxpanel/LXDE-pi/panels/panelCode: Select all
item {
name=Lock…
image=gnome-lockscreen
action=/usr/bin/dm-tool lock
}Code: Select all
/etc/xdg/lxpanel/LXDE-pi/panels/panelCode: Select all
item {
name=Lock…
image=gnome-lockscreen
action=/usr/bin/dm-tool lock
}Use this one instead:erikhermesman wrote: ↑Sun Aug 04, 2019 12:35 amDid something change in Buster? I'm trying to add the Lock Screen menu item with instructions from here - https://thepihut.com/blogs/raspberry-pi ... -pi-screen - but the icon is not showing up in the menu.
Code: Select all
/etc/xdg/lxpanel/LXDE-pi/panels/panelCode: Select all
item { name=Lock… image=gnome-lockscreen action=/usr/bin/dm-tool lock }
Code: Select all
nano /home/pi/.config/lxpanel/LXDE-pi/panels/panel
Code: Select all
separator {
}
item {
name=Lock…
image=gnome-lockscreen
action=/usr/bin/dm-tool lock
}Something has changed. Works on my 3B+ but not on my 4B.
Code: Select all
dm-tool lockyes...in fact this is what i was going to do ...create an icon on my desktop.klricks wrote: ↑Wed Sep 18, 2019 12:19 amSomething has changed. Works on my 3B+ but not on my 4B.
It was a bad idea to direct edit the panel file anyway as it is subject to being overwritten in an update. There is even a warning at the top of the file.
I would suggest to use Main Menu Editor and add the lock command to the menu. Then if you prefer make a desktop icon. (Right click on the menu item and select add to desktop).
The command is:Code: Select all
dm-tool lock
ah yes..the Main Menu Editor is a more elegant solution...i just had some troubles finding it.klricks wrote: ↑Wed Sep 18, 2019 12:19 amSomething has changed. Works on my 3B+ but not on my 4B.
It was a bad idea to direct edit the panel file anyway as it is subject to being overwritten in an update. There is even a warning at the top of the file.
I would suggest to use Main Menu Editor and add the lock command to the menu. Then if you prefer make a desktop icon. (Right click on the menu item and select add to desktop).
The command is:Code: Select all
dm-tool lock
FYI gnome-lockscreen.png already exists in /usr/share/icons/gnome/......mattoni wrote: ↑Thu Sep 19, 2019 1:48 pm...
ah yes..the Main Menu Editor is a more elegant solution...i just had some troubles finding it.
So i downloaded the icon from here:
https://en.wikipedia.org/wiki/File:Gnome-lockscreen.svg
I've copied it in /usr/share/icons (i haven't found any subfolder more appropriate) and created a new "Lock" item using the menu editor.
Thanks!
(much better than my previous shell script)
oh good to know! thanksklricks wrote: ↑Thu Sep 19, 2019 3:08 pmFYI gnome-lockscreen.png already exists in /usr/share/icons/gnome/......mattoni wrote: ↑Thu Sep 19, 2019 1:48 pm...
ah yes..the Main Menu Editor is a more elegant solution...i just had some troubles finding it.
So i downloaded the icon from here:
https://en.wikipedia.org/wiki/File:Gnome-lockscreen.svg
I've copied it in /usr/share/icons (i haven't found any subfolder more appropriate) and created a new "Lock" item using the menu editor.
Thanks!
(much better than my previous shell script)
Also the exe popup can be turned off: https://www.raspberrypi.org/forums/view ... 1&t=251999