Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set my application's desktop icon for Linux: KDE, Gnome etc?

I have a cross platform program that runs on Windows, Linux and Macintosh. My windows version has an Icon but I don't know how to make have one for my Linux build. Is there a standard format for KDE, Gnome etc. or will I have to do something special for each one?

My app is in c++ and distributed as source so the end user will compile it with gcc.

If I can have the icon embedded directly inside my exe binary that would be the best.

like image 414
KPexEA Avatar asked Sep 23 '08 03:09

KPexEA


People also ask

How do I put icons on my desktop GNOME?

In GNOME, you can enable desktop items by opening the Overlay using the Super button on your keyboard or by clicking the Applications icon in the dock and then search for and open “Tweak Tool”. You can then toggle them on and off by clicking “Icons on Desktop” under the Desktop section.

How do I change desktop icons in Linux?

To configure your desktop icons in Linux Mint, press the Super key. Then type “Desktop.” Before you hit enter or click on the entry, ensure that the option you have selected has the blue icon and says, “Manage your desktop icons” at the bottom. The other option with the green icon opens your “Desktop” directory.


1 Answers

For Gnome and Kde, you would probably want to include a desktop file with your app that defines how it will be launched. The specification can be found here. If you have an installer included with your app, you would probably want to have it generate this desktop file and put it in the right places to make menu entries and whatnot

like image 174
Jurassic_C Avatar answered Sep 21 '22 11:09

Jurassic_C