Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 469600 - sys-apps/baselayout-java - Install a .desktop file to execute .jar files that don't come from Portage with "java -jar %U"
Summary: sys-apps/baselayout-java - Install a .desktop file to execute .jar files that...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-12 16:57 UTC by Pacho Ramos
Modified: 2013-05-12 19:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos gentoo-dev 2013-05-12 16:57:40 UTC
Otherwise, we get .jar files opened with archive managers instead of being able to run them, needing to open a terminal and run "java -jar file.jar" 

The desktop file should contain the following:
[Desktop Entry]
Name=Run Jar file
Comment=Run selected Jar file
TryExec=java -jar
Exec=java -jar %U
StartupNotify=true
Terminal=false
NoDisplay=true
MimeType=application/x-java-archive;


Reproducible: Always
Comment 1 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-05-12 19:30:42 UTC
Java packages in the Portage tree should come with their own launchers and desktop files, therefore we assume that this is meant for users whom wish to start a binary jar application they have downloaded separately from elsewhere. Therefore this would rather belong to sys-apps/baselayout-java since it doesn't use java-config functionality. Because of that, I have changed the bug summary.