[Feature Request] - Add java .jar file handler #2843
Replies: 23 comments
-
You could write a .desktop file to launch the applicaton. The guide is https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html. And then double click on the desktop file to play Minecraft. |
Beta Was this translation helpful? Give feedback.
-
I've made a bash script with this code to simplify process. However, I'm just thinking that as it's java executable file, it should be executed like a normal program without any tricks with terminal and custom .desktop files. What do you think? |
Beta Was this translation helpful? Give feedback.
-
And anonther way is setting "open with". In general, how to lanunch an application and using what to open a file depend on application itself configuration wthen it was installed. |
Beta Was this translation helpful? Give feedback.
-
That's how it's done in ubuntu, so what's the matter with deepin? A packaging issue? |
Beta Was this translation helpful? Give feedback.
-
The link is inaccessible. |
Beta Was this translation helpful? Give feedback.
-
Oh, I totally forgot youtube is banned. It's basically what you've said with .desktop file serving as a handler. There is an option to open with "OpenJDK Java 8 runtime" on Ubuntu but for some reason I can't see anything like that on deepin. |
Beta Was this translation helpful? Give feedback.
-
Please give us some screenshots for Ubuntu‘s option. |
Beta Was this translation helpful? Give feedback.
-
I've changed some things and that's what works on Deepin |
Beta Was this translation helpful? Give feedback.
-
All right, the Ubuntu‘s option just is .desktop file. |
Beta Was this translation helpful? Give feedback.
-
That's why I'm asking whether is a packaging issue. Deepin does not include this .desktop file automatically for some reason. Can you fix it? |
Beta Was this translation helpful? Give feedback.
-
Usually, it should be packed in installation package. |
Beta Was this translation helpful? Give feedback.
-
The output of Entire output:
|
Beta Was this translation helpful? Give feedback.
-
There is no openjdk-11-java.desktop on the list. |
Beta Was this translation helpful? Give feedback.
-
I guess I don't see a point in executing this command. Obviously it won't show anything, because there is no .desktop file that comes from deepin repositories(which would handle .jar executable). Am I missing something? |
Beta Was this translation helpful? Give feedback.
-
@vesterlay Sorry, I meant to execute the command on Ubuntu. |
Beta Was this translation helpful? Give feedback.
-
It's modified and added by me version from Arch Linux https://github.com/archlinux/svntogit-packages/blob/packages/java11-openjdk/trunk/freedesktop-java.desktop but with exec changed to
Yes, that's the file. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
IT'S NOT. That's the whole point of this issue, that as you install |
Beta Was this translation helpful? Give feedback.
-
using this command on Deepin and Ubuntu: Are the versions same? |
Beta Was this translation helpful? Give feedback.
-
Deepin:
Ubuntu:
|
Beta Was this translation helpful? Give feedback.
-
It's seem like the version differences. |
Beta Was this translation helpful? Give feedback.
-
I don't think that different version of java have anything to do with this issue. Basically the point is that Ubuntu ships Java with Imo. it's a pretty big problem, because people can't simply download java file like minecraft and click on the launcher from the file manager. Currently on deepin to workaround this issue you have to either:
|
Beta Was this translation helpful? Give feedback.
-
Actually I don't know if it should be resolved by the File manager, but right now when I want to play Minecraft I have to execute
java -jar '/home/marcin/Downloads/TLauncher-2.75/TLauncher-2.75.jar'
which is not the case in Windows.Beta Was this translation helpful? Give feedback.
All reactions