[Lazarus] Icon program cannot be set as favorite in Ubuntu 18.04

Bo Berglund bo.berglund at gmail.com
Sun May 24 10:59:41 CEST 2020


On Wed, 20 May 2020 01:03:10 -0300, MaurĂ­cio Camargo via lazarus
<lazarus at lists.lazarus-ide.org> wrote:

>Hi.
>I note that in Ubuntu the icon program in the launcher does not have "Add
>to favorites".
>How can I fix my program in the bar?
>Thanks.
>MaurĂ­cio

Create a "desktop" text file:

~/.local/share/applications/lazarus_2.0.8.desktop
(change the version number to suit)

In this file put this (the example is what I have on an RPi4 with
Raspbian Buster):

[Desktop Entry]
Comment=Lazarus IDE 2.0.8
Terminal=false
Name=Lazarus 2.0.8
Exec=/home/pi/dev/lazarus/2.0.8/startlazarus
--pcp=/home/pi/.lazarus_2.0.8 %f
Type=Application
Icon=/home/pi/dev/lazarus/2.0.8/images/ide_icon48x48.png
Categories=Application;IDE;Development;GTK;GUIDesigner;Programming;
NoDisplay=false
Keywords=editor;Pascal;IDE;FreePascal;fpc;Design;Designer;

All lines start with keyword= and if the view above does not show that
then the line has been wrapped down.

Notice that the paths in my example refers to my installation inside
the pi home, on yours you have to adapt it to your situation.

Also notice the use of the --pcp argument, it is needed if you run
more than one version of Lazarus on your system (I have 4).


-- 
Bo Berglund
Developer in Sweden



More information about the lazarus mailing list