-
Notifications
You must be signed in to change notification settings - Fork 2
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
Handle webkit2gtk-4.0 #2
Comments
@probonopd I suppose this is something that you think should be added to |
Right, probably needs to be handled in |
Tauri does this to the libs:
But why? Also doesn't this mean that they need to change the working directory to the AppDir? What I mentioned here would be a different problem because we are also shipping the dynamic linker, maybe that tauri patch isn't needed and just the binaries need to be wrapped with sharun hopefully. |
I assume that libwebkit wants to launch the webkit helper binaries from a compiled-in path in |
It is looking for Maybe we need to resort to |
Most likely, also sharun the binaries in the You can also set |
Getting closer: Now I no longer crash when I click on printables which used to give the webkitgtk error. I did the following to fix the issue: Make a
and run:
Now what does EGL_BAD_PARAMETER error mean? |
Relevant issue about the EGL_BAD_PARAMETER error: gitbutlerapp/gitbutler#5282 Seems like an older version of webkit2gtk has to be used? this thing is a nightmare lol. EDIT: Looking at strace, I get the following missing libs when I click on "Printables" and I get the EGL_BAD_PARAMETER error:
Hopefully these libs just need to be bundled, specially That |
Update I was able to reduce most of the strace missing libs: I had to copy the following libs from ubuntu into the AppDir:
Now I only get |
Great progress @Samueru-sama 👍 |
@xplshn: Interesting as well. How far can you bring the size down in you approach without impacting functionality? Maybe you could use something like https://github.com/jacereda/fsatrace to find out which files are actually needed and should be kept? |
As of #1 (comment) now, the remaining issue on Fedora was that it claimed to need glib-networking for TLS/SSL to work. This message seems to come from libsoup-2.4.so.1.11.2. It's a shame that Chromium for Gtk draws in dependencies for GNOME such as https://wiki.gnome.org/Projects/libsoup which in turn draws in things like glib-networking which in turn seems to draw in GIO...
Apparently we need to deploy that stuff (and its dependencies) too, and set At least on my machine everything now seems to work on Fedora with an AppImage built on Ubuntu. Would be interesting to know whether it can run on NixOS. |
Well, depends the mode. The smallest AppBundle that uses an entire rootfs is 10 megs, 6 out of those 10 megs are the static tools being included... The |
sharun should already set |
So, for my personal test case I found solutions for all of the above. But it is a lot of manual work, Is it in the scope of this project to provide automation for this? Thanks. |
This is a very specific issue with webkit2gtk. With that said I was recently shared this amazing thing that can be used to overwrite paths. TLDR:
Then move the lib to the AppDir and:
And now calls to So maybe |
Yes... but it needs to be considered also:
|
In that case the binary works already. I don't know of a scenario where we ship a static binary in an AppImage that is hardcoded to look into
I guess you could add it with |
webkit2gtk-4.0 needs some extra handling as described in tauri-apps/tauri#2940.
https://github.com/probonopd/PrusaSlicer/blob/efe3df7c9a9a3bd8c2b7bdfa3ec6bb31bb67ab41/.github/workflows/build.yml#L100
is apparently not the way to do it, as it did not work for me.
The text was updated successfully, but these errors were encountered: