3

I have raspbian, with the pixel desktop. How can I add custom application launchers to the panel? Alternatively, how can I add Firefox, and terminal emulator to the panel?

I tried dragging and dropping programs into the panel, but this doesn't work. I have searched all thought panel preferences.

  • I'm more of a CLI user and unfortunately haven't had much of a chance to play with PIXEL. Could you possible take a look at this and see if it's still relevant? – goobering Jan 18 '17 at 15:36
2

Click on the raspberry menu button.
Select Preference [Main Menu Editor]
In the left column select a location for the new item i.e. "Other".
Click on the right column.
Select [New Item].
Give the Item a name i.e. "K40 laser cutter".
Browse to the location of the item and click on it. In my case it was "/home/pi/Downloads/K40_Whisperer-0.42_src/k40_whisperer.py"
Edit the command in my case I added "sudo python " to the beginning.
Add a comment.
Click on the icon in the left of the window.
Select a unique icon for your new item. Mine was in the k40_whisperer folder. You may want to find the icon using the file manager.
Close the menu editor.

++++++++++Older Raspians you could do this +++++++++
Find your new item in the Main Menu.
Drag the new item to panel.

++++++++++Newer Raspians do this ++++++++++
Right click on panel.
Click on [Add/Remove Panel Items].
Open the [Panel Applets] tab.
Click on [Preferences].
Locate your new item in the menu and click on it.

1

To add custom applications, or to edit the panel config manually, you need to edit
/home/pi/.config/lxpanel/LXDE-pi/panels/panel

Here you can modify any settings of the panel that you want, including the launchbar
You can find most installed applications' .desktop files either in
/usr/share/applications/ or
/usr/share/raspi-ui-overrides/applications/

Plugin {
  type=launchbar
  Config {
    Button {
      id=pcmanfm.desktop
    }
    Button {
      id=chromium-browser.desktop
    }
    Button {
      id=kodi.desktop
    }
    Button {
      id=lxterminal.desktop
    }
  }
}

You can specify any path to a .desktop file in the id.
If given just a file name, it will either look in
/usr/share/applications/ or
/usr/share/raspi-ui-overrides/applications/

You could add your custom .desktop file there, to launch anything you'd like, or use the path/to/your/custom.desktop file

0

OK, I figured out a way to do it. I'm not claiming it as an elegant solution, and there may well be better options. This solution would also have problems, if you wanted to do other things like write your own code and execute it via panel applet. So its good enough, for right now, but could likely be improved.

First, right click on the panel, and select "Panel Preferences".

Then, select the Panel Applets Tab, and click the Add Button. Next, Select "Application Launch bar" and click add. enter image description here

Then, click "up" several times to get the "+" logo into the position you want, and click OK.

Goto the Plus sign, and click on it. you now have a list of applications from the applications menu. select the application you would like to add, and click add. Then Click ok.

I ended up with something like this: enter image description here

Other Caveats: The listing in "Panel Preferences" will all say "Application Launch Bar" and I see no way to differentiate between them, short of clicking up or down, to move a selected launcher around.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.