How to create an icon for my application on Ubuntu?

Linux specific forum
User avatar
marcoagpinto
Addict
Addict
Posts: 1076
Joined: Sun Mar 10, 2013 3:01 pm
Location: Portugal
Contact:

How to create an icon for my application on Ubuntu?

Post by marcoagpinto »

Hello!!!!

How do I associate an icon to my application to appear on the left side of the screen instead of a "?" icon?


Thanks!

Kind regards,
>Marco A.G.Pinto
---------------
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: How to create an icon for my application on Ubuntu?

Post by ts-soft »

You have to create a starter (simple textfile):
example:

Code: Select all

[Desktop Entry]
Name=MyAPP
Exec=/home/marcoagpinto/MyAPPDIR/MyAPP
MimeType=
Icon=/home/marcoagpinto/MyAPPDIR/MyAPP.png
Terminal=false
Type=Application
Categories=GTK;GNOME;Application;
Comment=
change the settings to your application

save this for example as: MyAPP.desktop in: ~/.local/share/applications/
Set the executable flag on this file.

Type in a terminal:

Code: Select all

update-desktop-database ~/.local/share/applications
Now, you found your application in dash and can start it, it should shown on the left side with icon :wink:

Greetings - Thomas

// edit
or have a look here: https://apps.ubuntu.com/cat/application ... -launcher/
not tested by my, i doesn't use ubuntu (bad :mrgreen: )
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Post Reply