• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to set Linux Desktop icon  RSS feed

 
sunil sahoo
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I have cretaed an RPM for my java application it works fine. Now I want to know how to set linux desktop icon in that rpm. Means if the user will install the application then an icon will be displayed in its desktop and also in start menu. If i click on that icon then my java application will start. Can any one please guide me.

Whether i need to do anything in my .spec file or i need to do any thing in .desktop file.

Any detail and easy description.


Thanks
Sunil Kumar Sahoo
 
Tim Holloway
Saloon Keeper
Posts: 18789
74
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unlike MS-Windows, Linux has more than one desktop option. Gnome and KDE are the 2 most common, but there are quite a few others as well.

Basically, to add an icon to the desktop, you have to follow the rules required for that desktop. As far as I'm aware, there's not standard universal API or file organization for adding icons and menus, but I think that people have been doing some work to make the task easier.

What I recommend is to go and look at the Gnome or KDE developer docs and see what they say. You can then put the appropriate directives into the specfile's postinstall script.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!