-
Notifications
You must be signed in to change notification settings - Fork 13
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
Experimental native Wayland Support #96
Conversation
This should not be necessary, but seems to be for the patched glfw to run. I will try and see if this is a Flatpak bug or I'm just not understanding Flatpak directory permissions correctly.
Adds necessary dependencies as well as the patches themselves. Note the patched glfw is only used with an opt-in JVM argument.
Started test build 54019 |
Build 54019 failed |
bot, build |
Queued test build for com.mojang.Minecraft. |
Started test build 54045 |
Build 54045 failed |
com.mojang.Minecraft.json
Outdated
"sources": [ | ||
{ | ||
"type": "archive", | ||
"url": "https://gitlab.gnome.org/jadahl/libdecoration/-/archive/master/libdecoration-master.tar.gz", |
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.
Using archive made from latest master is not a good idea. ;-)
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.
Also, it looks like the repository has moved to https://gitlab.gnome.org/jadahl/libdecor - that has a tagged release you could use. ;-)
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.
Thanks for pointing that out, this took me a minute to figure out, turns out all I needed to do was update the libdecor patch (yay juggling patches).
I do hope to try and debug the issues on the issue list at some point, because that's probably a much better use of time, especially the last one. Since libdecor got into SDL hopefully the patches get reviewed sooner than later.
Started test build 54708 |
Build 54708 successful
|
Thanks! I will test this when I have more time. However, I am not sure whether I want this in master since it is an unofficial, unsupported patch that can potentially bring some issues. Also, this is definitely incorrect and should not be in the manifest:
At least in my opinion. I could make a beta branch and merge it there, but I already have too much work with maintaining this Flatpak (and my other ones) since I am the only active maintainer, so I am not interested in maintaining another branch. :-/ |
I don't think this should be merged at all, even if I find an actual solution for that file permission trick. It doesn't seem right to put a bunch of patches in here, even if users have to pass a JVM flag to the launcher to get it working. This PR should only be for the sake of testing and experimentation--I'd like to help get the patches merged properly upstream, and this seems like a nice way of testing it. Therefore a beta branch wouldn't be necessary if there's no intention of merging this. Thank you for your work on this package, I'd like to help more where I can. I don't think I can currently commit to actively maintaining this unfortunately, but hopefully I can be helpful. BTW, I noticed today Minecraft is on the approved Flatpaks list for Fedora's "Filtered Flathub" initiative. So users who enable third party repos on Fedora 35 will have this Flatpak in the software center. So you can probably expect more users... |
this never made much progress, this still needs upstream support |
#85 is an older version, ignore that one.
Adds native Wayland support thanks to the work that's gathered here. Nothing is changed by default, a user specifically has to opt in by adding a JVM flag in the launcher. Should work in 1.13+, including 1.17 (see picture).
This is done so the GLFW patches can be tested. The goal is not to have to ship a patched GLFW, but to help get them upstreamed. If possible, please test out this build following these instructions and report issues where appropriate.
Fixes #84
To use:
flatpak-builder --user --install build-dir com.mojang.Minecraft.json
-Dorg.lwjgl.glfw.libname=/app/lib/libglfw.so
to your JVM arguments. Ensure to leave a space in between arguments.Issues:
Unimportant (since long-term we shouldn't want any custom glfw):
Patch Info:
The Flatpak uses the patches gathered here (libdecoration branch), which were originally from the following GLFW changes:
Todo: