Closed ivan-hc closed 1 year ago
the AppRun content is this
#!/bin/sh
HERE="$(dirname "$(readlink -f $0)")"
export UNION_PRELOAD=$HERE
export JUNEST_HOME=$HERE/.junest
export PATH=$HERE/.local/share/junest/bin/:$PATH
echo "obs $@" | $HERE/.local/share/junest/bin/junest -n
@TheAssassin @probonopd @azubieta any idea on what should I do?
Hi @ivan-hc, it seems like this is not an issue with the AppImage file format but an issue with obs-junest.sh
, or with its dependency, junest, or with its dependency, bwrap
. I am not familiar with neither, so I can't be of much help here.
From a quick glance at the junest documentation, it seems like Proot can be used as a backend for junest instead of bwrap, did you try that already?
I can't test now, because on the Arch Linux side they have a dependency problem that is not related to the AppImage, i.e.
obs: error while loading shared libraries: libicui18n.so.73: cannot open shared object file: No such file or directory
However, I've not tested proot, I've not understand how to do, it gaves me always the same error when I try to do so:
fakeroot: preload library `libfakeroot.so' not found, aborting.
But libfakeroot is installed on the host, Debian, and the main Debian repo only provides:
/usr/lib/x86_64-linux-gnu/libfakeroot/libfakeroot-0.so
/usr/lib/x86_64-linux-gnu/libfakeroot/libfakeroot-sysv.so
/usr/lib/x86_64-linux-gnu/libfakeroot/libfakeroot-tcp.so
I have changed the AppRun this way now:
#!/bin/sh
HERE="$(dirname "$(readlink -f $0)")"
export UNION_PRELOAD=$HERE
export JUNEST_HOME=$HERE/.junest
export PATH=$HERE/.local/share/junest/bin/:$PATH
echo "obs $@" | $HERE/.local/share/junest/bin/junest proot -n
in my first tests the AppImage works on my PC and into a *.home directory
Now I've uploaded my script on my other repository, this is the script:
https://raw.githubusercontent.com/ivan-hc/OBS-Studio-appimage/main/obs-junest.sh
The AppImage will be downloaded from here after GH Actions have finished:
IT WORKS GREAT NOW!
Just downloaded from https://github.com/ivan-hc/OBS-Studio-appimage/releases and it works without issues!
@probonopd this time the biggest job will be deleting the excessive files, not guessing what dependencies the package needs to work!
Anyway I'm so happy now! I've been trying to build OBS Studio AppImage for a year! Thank you!
Hi @probonopd , how are you?
I'm contacting you to tell you that I improved the ArchImage project by eliminating proot
in favor of bwrap
(Bubblewrap).
All its left to do is letting the bundle use host's hardware accelleration. Someone from the "Bottles" project is helping me with this.
Great improvements are expected.
I would be happy if you could participate.
How to reproduce the error
In my tests I'm focused on OBS Studio, to get the script and made it executable
Once downloaded the script to create OBS Studio, uncomment the lines 56 and 57, this way
This step is needed to prevent that Junest creates a directory
/home/$USER
in it.Save the script and run it
Issue
JuNest use bwrap to containerize Arch Linux.
By running the AppRun, after the steps above, I get this message:
By running the AppImage instead
Plus an additional message that normally appears also when this kind of AppImage is created normally, the one you create by default, with lines 56 and 57 commented. Just to be precise:
We can ignore this message.
AppImages can be containerized by creating a directory with the same name of the AppImage, near it, example:
For this kind of AppImage this method does not work, this is the output:
NOTE: I had all the same issues above when using this script wit Github Actions, the first time I created it
So, to work the AppImage needs to be compiled on the same directory of $USER
This is important, because if you compile this script as root, the AppImage will not work with the normal user.
Conclusions
The issue is this message: