-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Flatpak support #1406
Add Flatpak support #1406
Conversation
@mbooth101 I'm installing OpenJFX 11 to use it with your OpenJDK 10 extension. It works but I think it would be nice to have an OpenJFX extension as well. Do you think that would be feasible? |
In my opinion we should wait until a |
Would be nice, yes. Did you take a look at the JDK 10 extension? How hard can it be do adopt this for 11? |
Yes, I've taken a look at the JDK 10 extension at https://github.com/flathub/org.freedesktop.Sdk.Extension.openjdk10, which truth be told is quite hard to find on google. You're right, the most important open task is the open issue. |
I assume that it's a permission issue as well. However, I've no idea what exactly the problem is.
|
I may have found the source for the problem. |
I think we have a tmp inside |
Use |
@Maryse47 I've noticed that there are differences already but even with the installed flatpak the issue remains. |
Hi @plata Maybe -- I have no exposure to openjfx. How is it built? BTW, there will be openjdk11 extension very soon: flathub/flathub#669 |
@mbooth101 great! Looking forward to the OpenJDK 11 extension. I don't know how OpenJFX is built but if you look at my manifest in this PR, I'm just downloading and unpacking it which seems to be working (at least the GUI starts etc). I was thinking that it might be possible to do just that in an own extension for OpenJFX. Correct me if I'm wrong. |
I would just bare in mind that if it has native parts it may need to be built from source in order to support all the Flatpak architectures. |
They only have one Linux build on https://gluonhq.com/products/javafx/ so probably it's not that architecture dependent. |
I think my approach was wrong. Instead of accessing |
Did you receive an error message/exception? |
It said something about "<NAK". Not sure if that's an the error but I couldn't see anything else really (fetching the branches etc seemed to work ok). Can you give it a try? I think you know the git repository quite well. |
@LeandroStanger doesn't help, unfortunately. |
@plata I'm not sure I can really help here. Out of interest, can a flatpak installation conflict with a |
Description how to use it is in the pr description. It's sandboxed so it shouldn't conflict with the deb install. |
Strange. It worked now. I think it just took longer. |
Now I get:
The file exists. |
I've tried to investigate the exception: it happens when |
I recommend to open PR in https://github.com/flathub/flathub/pulls . The most capable people to help are there. |
I've fixed the Wine 32bit issue. I could now successfully install and run Notepad++. @Maryse47 the problem is that they only want stable versions (according to their docs). We're currently in alpha. |
You can mark it as WIP or something like that with the intention to not merge it before main app is stable. The goal is to get more help. |
I get your point. I'm just not sure that I need support currently because it seems to be working now. Feel free to give it a try. |
<p>Phoenicis ist ein Front-End für Wine.</p> | ||
</description> | ||
<categories> | ||
<category>Game</category> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if Game
is the correct category for Phoenicis.
Maybe something like Utility
fits better.
<p>Phoenicis is a front-end for Wine.</p> | ||
</description> | ||
<description xml:lang="de"> | ||
<p>Phoenicis ist ein Front-End für Wine.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the translations manageable via Crowdin?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so (it's in the same file and not listed in their supported formats).
Type=Application | ||
MimeType=application/x-ms-dos-executable;application/x-msi;application/x-ms-shortcut; | ||
Icon=org.phoenicis.javafx | ||
Categories=Game |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
MimeType=application/x-ms-dos-executable;application/x-msi;application/x-ms-shortcut; | ||
Icon=org.phoenicis.javafx | ||
Categories=Game | ||
Keywords=Phoenicis; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PlayOnLinux, Wine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure how the keywords need to be split.
If they are split with a ;
, the separator between PlayOnLinux and Wine is wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
] | ||
}, | ||
{ | ||
"name": "openjfx", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it still required to install OpenJFX separately?
Starting with Java 11 it should be possible to install JavaFX/OpenJFX via maven.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't work somehow. I get:
Error occurred during initialization of boot layer
java.lang.module.FindException: Module javafx.controls not found
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this indicates a problem with the java
command and/or the project setup for Java 11.
Have you only removed the
{
"name": "openjfx",
...
}
block?
Have you also removed the -p /app/javafx-sdk-11/lib
argument to the java
command?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem is: I have only JDK10 here (Ubuntu 18.04). If you check #1408, the maven dependencies do not seem to be enough (according to the tests of @ImperatorS79).
"sdk-extensions": [ | ||
"org.freedesktop.Sdk.Extension.openjdk11" | ||
], | ||
"add-extensions": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there should be extension for 32bit libGL org.freedesktop.Platform.GL32
. Without it, 32bit wine may be unable to use NVidia libGL.
See how steam flatpak adds 32bit extensions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've actually tried that but I always got an error when I tried to flatpak install
this. Maybe I just did it wrong. Can you try?
@plata if this works as intended then I'm fine with merging this PR now. |
I would like to merge this. The JavaFX issue is also there if you try to run Phoenicis built with JDK 11. I don't think it's related to Flatpak. |
The manifest file is located in
phoenicis-dist/src/flatpak
.Required extensions:
To build:
Run with:
fixes #1190