taylorkh
Posts: 106
Joined: Mon Nov 20, 2017 7:57 pm

Custom launcher on Panel or Menu?

Sun Nov 26, 2017 1:49 pm

Raspbian Stretch does not have a "lock screen" applet which I can add to the panel. (At least I have not found one.) After some research I found and installed the xsceensaver package. "xscreensaver-command -lock" will do what I desire. I added it to the main menu and can invoke it from the menu. However, I cannot move it from the menu to the application launcher area of the panel.

The Application Launch Bar properties dialog allows me to select an "installed application." However, my hand made entry on the menu does not show up as an installed application. Any suggestions?

If I have to leave the the lock screen entry on the menu I would like to move it from "Applications" to the top level of the menu - where Shutdown is located. I do not see a way to do this either.

TIA,

Ken

User avatar
BullittBourbon
Posts: 4
Joined: Sat May 07, 2016 5:09 am
Contact: Website

Re: Custom launcher on Panel or Menu?

Tue Jun 25, 2019 1:09 am

better late than never

As you may already know Raspbian uses LXDE, lxpanel documentation: https://wiki.lxde.org/en/LXPanel

Lxpanel is looking for .desktop files in /usr/share/applications
1. move your custom .desktop files there;
2. Refresh the panel:

Code: Select all

#sudo lxpanelctl restart
3. Look for your commands under Other. If they're not there, try looking for them in Main Menu Editor (Alacarte) and check them to enable.
4. Confirmed? Now use the lxpanel gui Panel Settings to add to the list of launchers under Application Launch Bar.

taylorkh
Posts: 106
Joined: Mon Nov 20, 2017 7:57 pm

Re: Custom launcher on Panel or Menu?

Tue Jun 25, 2019 7:07 pm

Thanks BullittBourbon,

I have sort of thrown in the towel on Raspbian. I had built a nice gateway, router, firewall, VPN sharing box from a Pi Zero. I had migrated down from an Intel box with CentOS 7 to a Pi 3B with Ubuntu to the Zero. It carried the load, however, Raspbian kept changing the names of the network connections. Sort of hard to script against an ever changing network configuration. I am back to a 3B+ with Ubuntu Mate 18.04 and the Zero is back in the parts box.

Ken

User avatar
BullittBourbon
Posts: 4
Joined: Sat May 07, 2016 5:09 am
Contact: Website

Re: Custom launcher on Panel or Menu?

Thu Jun 27, 2019 6:31 pm

hi Ken-

If you tire of the slow performance of Ubuntu Mate, maybe you will consider running Raspbian Lite with a different desktop environment.
This is a very well-written guide: https://www.raspberrypi.org/forums/view ... p?t=133691

l've used Mate, XFCE, LXDE, i3, and Openbox on Raspbian. l agree with many other users, XFCE is a good compromise between performance and interface usablity. Mate is not as compatible with the Pi, it often freezes on me. For what you wanted to do on Raspbian Desktop, the custom command launcher, it's very simple on XFCE.

-Bullitt

Return to “Raspberry Pi OS”