Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

How to set Linux Desktop icon

 
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
 
Saloon Keeper
Posts: 22256
151
Android Eclipse IDE Tomcat Server Redhat Java 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.
 
My favorite is a chocolate cupcake with white frosting and tiny ad sprinkles.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic