Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-04-28 15:57:26

nemodlenec
Member
From: Prague, CZ
Registered: 2019-01-18
Posts: 11

[SOLVED] How to add a custom launcher to xfce4-appfinder?

As the title says.

Last edited by nemodlenec (2019-04-29 19:25:35)

Offline

#2 2019-04-28 16:33:59

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,042

Re: [SOLVED] How to add a custom launcher to xfce4-appfinder?

xfce4-appfinder is basically a xdg-compliant menuing system. So the easist (gui method) way is to use a menu editor.

A second "easy-ish" way is to right-click the desktop and select "Create Launcher...". Once created, move the newly created .desktop file to ~/.local/share/applications. It will show up in the "Other" category unless you edit the .desktop file and add in a Categories= line.

A third less easy way is to create a Thunar custom action with the following minimum values:

  • Name = Create Launcher...

  • Command = exo-desktop-item-edit -c %f

  • Appearance tab: click only directories

Right-click in ~/.local/share/applications and select "Create Launcher" and fill in the properties. As above, you'll need to manually add Categories to have it display in the correct submenu.

You can also do it manually by following this guide and creating a .desktop file in ~/.local/share/applications that looks something like this (this is my custom launcher for yradio):

[Desktop Entry]
Type=Application
Name=YRadio
GenericName=Radio Player
Comment=Listen to the radio
Icon=teamspeak3
Exec=/home/toz/Development/yradio/yradio
Terminal=false
Categories=GTK;AudioVideo;Audio;
StartupNotify=true

Important to note is the Categories section which dictates which submenu it should sit in.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2019-04-29 19:25:46

nemodlenec
Member
From: Prague, CZ
Registered: 2019-01-18
Posts: 11

Re: [SOLVED] How to add a custom launcher to xfce4-appfinder?

Thank you smile

Offline

Board footer

Powered by FluxBB