You are not logged in.
I've tried searching a for a while and can't seem to get anywhere with such generic search terms, but I was wondering what would be the proper way to include a .desktop file and possibly an icon for a PKGBUILD that is just a Java-based program? I think it would be a lot more user-friendly for people if I could add the program to their menu when they install it.
As things are right now, the PKGBUILD just creates an executable script in <code>/usr/bin/</code> that runs the jar file with the proper classpath (as per the Java Packaging Guidelines), and there is nothing to actually make/compile (thus no .desktop file directly from the author). The package I plan on adding these features to is jGnash in the AUR if you want to take a look. Thanks!
Offline
If you're wondering about paths, for the mostpart I've seen the .desktop files go into /usr/share/applications and the icons into /usr/share/icons.
Offline
Cerebral, icons for apps go in /usr/share/pixmaps. /usr/share/icons is for icon themes like Tango, etc
Offline
I think the cleanest way to do this is to provide the icon and .desktop files in your tarball, list them in your source array, and add install commands to the PKGBUILD. I have seen other submissions where the .desktop file is created in the PKGBUILD, but personally I'd use the first method.
Offline
I'm with tomk idea, I always provide .desktop/icon files within packages if they don't generate one, and a simple install command to /usr/share/{applications,pixmaps} in the PKGBUILD
[My Blog] | [My Repo] | [My AUR Packages]
Offline
Good tip. We ought to find a good place in the wiki for this info.
Offline
Cerebral, icons for apps go in /usr/share/pixmaps. /usr/share/icons is for icon themes like Tango, etc
Er... yes. Wow. That's what I get for trying to post something at 1 in the morning after going nuts working on an assignment.
/usr/share/pixmaps is indeed where I've noticed most icons going, not /usr/share/icons. :oops:
Offline
Awesome...thanks for the advice everyone.
Offline
BTW elasticdog, where did you find the info on java packaging??
I've crawled over the forums and wiki but haven't been able to find it
Offline
It took me a little while to track it down again too You can find the guidelines here: http://www.buchuki.com/misc/archjava.html
If I get bored later tonight, I'll try to convert that document over to the wiki...
Offline
Cheers
Offline
If I get bored later tonight, I'll try to convert that document over to the wiki...
That would be wonderful! I hope boredom sets in!
Dusty
Offline
Done...the newly packaged jGnash personal finance manager has been properly updated in the AUR to include an icon and a .desktop file. Thanks for all the help with that one mateys!
Offline
It took me a little while to track it down again too You can find the guidelines here: http://www.buchuki.com/misc/archjava.html
If I get bored later tonight, I'll try to convert that document over to the wiki...
Took me a couple days to get bored, but tonight I added and slightly edited the Java Package Guidelines to the Wiki...
Offline