• Status Unconfirmed
  • Percent Complete
  • Task Type Feature request
  • Category core
  • Assigned To No-one
  • Operating System
  • Severity High
  • Priority Normal
  • Reported Version
  • Due in Version Undecided
  • Due Date Undecided
  • Votes 0
  • Private No
Attached to Project: Packages
Opened by gnastyle (gnastyle) - 2016-11-27

FS#1772 - add .desktop file to automaticaly exec .jar files

when you click a .jar file, Ark is the default option to open it,
but it's very useless.

Instead we should execute the jar file directly because:
1) on other OSes is the default option (I heard people complaining why on linux you can't exec the file directly)
2) opening the archive is basically useless
3) when people want to exec the .jar file they don't know how to do it

It's just a matter of inlude a .desktop file under /usr/share/application/org.chakra.jar_exec (and it doesn't show on menu launcher btw)
in the openkdj package
And it is like this:

[Desktop Entry]
Exec=java -jar $1

Also I can make a java icon to make it look better

This task does not depend on any other tasks.

Lisa Vitolo (shainer)
Saturday, 03 December 2016, 18:00 GMT
While this would be user-friendly, I would be worried about accidental execution, especially if you use single-click as the default.

Windows does this, but nowadays it has confirmation dialogs before it execs anything.
gnastyle (gnastyle)
Saturday, 10 December 2016, 12:03 GMT
We can easily add a confirmation dialog with kdialog (with 16.12 will be kf5)
Lisa Vitolo (shainer)
Monday, 12 December 2016, 21:06 GMT
With a confirmation dialog I would be okay with this :)
Bruce Liu (brli)
Saturday, 14 January 2017, 09:59 GMT
> 2) opening the archive is basically useless

Not really, it makes the user aware of the fact that it is an archived file, not an executable binary.

> 3) when people want to exec the .jar file they don't know how to do it

"How to execute a Java file should be java 101, if you're not really want to learn Java, please check the following community repo package: (point to ccr)"

meh, IMO, people shouldn't just execute anything that is coming from untrusted source, even is from a friend.

BTW, a `java file.jar` under konsole shouldn't be that hard a tutorial AFAIK