Bug 1397332 - Please associate .jar Java apps to openjdk runtime in Nautilus
Summary: Please associate .jar Java apps to openjdk runtime in Nautilus
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: java-1.8.0-openjdk
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Deepak Bhole
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-22 10:38 UTC by Iiro Laiho
Modified: 2017-08-08 19:19 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-08 19:19:41 UTC
Type: Bug


Attachments (Terms of Use)

Description Iiro Laiho 2016-11-22 10:38:52 UTC
Description of problem:

.jar apps open in archive manager instead of the Java runtime in Nautilus.

How reproducible:


Steps to Reproduce:
1. Get a .jar executable from somewhere
2. Find it in Nautilus
3. Double click it

Actual results:
It opens in file-roller. Java runtime isn't found even in "Open with" options. One has to create a .desktop file manually or run the app in command line, resulting in a bad user experience.

Expected results:
It should run in the Java runtime, or at least Java runtime should be in the "Open with" list.

Additional info:

Comment 1 jiri vanek 2016-11-22 13:03:54 UTC
Hi!

this is not going to happen. Each jar should have launcher. Otherwise it is correct that it is considered archive. Executing any arbitrary jar from network is not only  dangerous (as any other executable binary...) but the ar even do not need to be execute-able (to be execute-able  it must have mainclass in manifest).

There is a lot of closed bugs on this topic. And imho the universe still did not changed.

Comment 2 jiri vanek 2016-11-22 13:13:40 UTC
s/ar/jar

Comment 3 Iiro Laiho 2016-11-22 14:37:47 UTC
Hi, 

Unfortunately I found only one bug report about that and even that was not exactly closed, but left to expire due to the release going end of life. It is sometimes really difficult to search bug trackers.

How excatly is running an app via a launcher any safer than running it directly? And does Fedora's Nautilus refuse to run native binaries, too? I haven't yet tested the later and do not at this moment have a Fedora machine on hand.

Comment 4 Iiro Laiho 2016-11-22 14:44:20 UTC
And where exactly is defined that each .jar "should" have a launcher? According to Oracle (1), Java apps are supposed to be ran by double-clicking the .jar or launching them from command line via java -jar. Instead, they talk about assoicating .jar files with JRE.

1) https://netbeans.org/kb/articles/javase-deploy.html

Comment 5 Iiro Laiho 2016-11-22 17:56:43 UTC
Okay, I checked it out, Fedora seems to not run native apps neither from Nautilus, so now it makes sense to me. Closing.

Comment 6 Iiro Laiho 2016-11-22 18:00:37 UTC
Sorry for this commend flood.

It seems that Nautilus won't run the apps in /bin, but will happily run, say, AppImages once they have correct permissions. Running native code or .desktop files is not any safer than running Java applications.

Comment 7 Fedora End Of Life 2017-07-25 23:58:04 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '24'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 8 Fedora End Of Life 2017-08-08 19:19:41 UTC
Fedora 24 changed to end-of-life (EOL) status on 2017-08-08. Fedora 24 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.