-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[bug] appimage does not contain libthai.so #4930
Comments
Wellll, about that. We still need info about your build system since that's where the appimages pulls its files from. |
This is from running a third party application that uses tauri, the application can be found here and uses a github action to build it on ubuntu-latest |
Thanks! I still have a couple of follow up questions. If this error happens on your system:
|
I'm running nixos (unstable) with a display language of english and an input language of english |
Ahhh so it probably only happens on nixos then 🤔 Wouldn't surprise me since we have many unresolved issues with it (primarily when using it as a build system), because none of the team members use nixos. Thanks again ❤️ we'll look into it as soon as we can :) |
I don’t think that’s the issue, I think the main issue is that the buildapp step doesn’t bundle libthai, while the actual generated appimage needs it to run. It probably manifests on nixos since nixos doesn’t have a standard library search path to fall back to, and most other distros will have libthai in the search path, so it’ll work on those. Still, the main issue is that the appimage created isn’t system independent, and an easy way to make it system independent is to just make sure that all library dependencies are bundled in the final result. |
Yeah no, i'm totally with you there. I meant that it seems to only be a problem on nixos which is why it's so rare and why i wasn't able to reproduce it. I didn't mean to blame the issue itself on nixos, if you get what i mean. Now the question is, why it's not being bundled. It's a dependency of webkitgtk, so linuxdeploy is supposed to include all the needed .so files 🤔 Edit: Found the answer, it's on the excludelist: https://raw.githubusercontent.com/probonopd/AppImages/master/excludelist |
I was just searching for an excludelist, but you beat me to it :). |
A user using |
but it looks like it shouldn't: AppImageCommunity/pkg2appimage#538 |
The same happens on the Slackware distribution. I have Slackware64 version 15.0 installed and libthai is not present. Note: Libthai is available in the Slackbuilds repo. It has libdatie as dependency though (also available on the repo). |
Just bumping this that it happens when I build a Tauri application on GitHub actions as well EDIT: Installing EDIT2: For those of you coming here trying to run a Tauri bundled AppImage under NixOS, overriding the Found the answer thanks to #7046 🙏
|
A better fix than using this workaround or waiting would be to merge this into the actual derivation. Then it would immediately start helping people using Nix, rather than waiting for it to filter through updating tauri, surely? |
This is already done: NixOS/nixpkgs#271170 |
This has been fixed by AppImageCommunity/pkg2appimage#555 |
You need to call |
|
Describe the bug
Running an appimage generated by the tauri build system doesn't work on linux distributions that don't contain libthai.so in the library search path, making the appimage not fully self-contained.
Reproduction
error while loading shared libraries: libthai.so.0: cannot open shared object file: No such file or directory
Expected behavior
That the application should run
Platform and versions
N/A (since this affects users of the system, not application developers)
Stack trace
No response
Additional context
The bug was previously reported by someone else as #4847, but subsequently closed.
Unpacking the appimage and running ls on
appimage-path/usr/lib
shows the following libraries bundled:notably libthai.so.0 is missing from that output
The text was updated successfully, but these errors were encountered: