Launcher creation

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
MicroM

Launcher creation

Post by MicroM »

Hi. Using KDE 18.3

I'd like to create a launcher in the taskbar for a program. The usual methods do not work. When the program window is open right-clicking on the taskbar show a launcher when not running is not selectable. I am able to create shortcuts for the program in the app launcher without any problem, though.

Thanks.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
thunder422

Re: Launcher creation

Post by thunder422 »

You need a .desktop file for the application. In Dolphin, from your Home directory, go to the .local/share/application directory. .local is normally hidden, but you can get there by simply clicking on the local bar - you will see /home/user (where "user" is your user name). Start typing .local/share. The application directory may not be there and you may need to create it (I had to create it and then reboot).

Once in the application directory, right-click and Create New, and Lick to Application... Replace the text "Link to Application" with the name of your application with the extension .desktop, for example abc.desktop. Now go to the Application tab. Enter the Name: of your application (e.g. "Abc"), for Comments: some description (e.g. "The Abc Application"), for Command:, click on the Browse and find the binary for your application. You may need to set the Work Path also if you want the application to start in a particular directory. Click OK.

Now it needs to be modified, so right-click and select Properties. The Icon can now be set, so click on the icon on the General tab and select the icon for the program. You may need to select other and then browse for it. Click OK.

To see if it set up correctly. click on the .desktop file and it will ask you to Open, Execute or Cancel. Click Execute, and if the program starts, then success. You should now be able to select the Show A Launcher When Not Running option (this option has been renamed to Pin in the latest KDE).
MicroM

Re: Launcher creation

Post by MicroM »

thunder422, thanks for the very detailed instructions :!: :mrgreen:
Locked

Return to “Software & Applications”