Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 469600

Summary: sys-apps/baselayout-java - Install a .desktop file to execute .jar files that don't come from Portage with "java -jar %U"
Product: Gentoo Linux Reporter: Pacho Ramos <pacho>
Component: Current packagesAssignee: Java team <java>
Status: CONFIRMED ---    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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.