Skip to content

Commit 0cdb3c0

Browse files
authored
Finally fix varia shell script
1 parent fc72f73 commit 0cdb3c0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

make-appimage.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ quick-sharun /usr/bin/varia \
3131
# Patch varia's shell script to be POSIX and to use AppImage directories
3232
cat << 'EOF' > ./AppDir/bin/varia
3333
#!/bin/sh
34-
python3 ./varia-py.py aria2c ffmpeg NOSNAP "$@"
34+
pythonexec="$(command -v python3)"
35+
# For some reason, SHARUN_DIR is not exposed here, so I need to get it manually
36+
sharunbindir="${pythonexec%/*}"
37+
"$pythonexec" "${sharunbindir}/varia-py.py" "${sharunbindir}/aria2c" "${sharunbindir}/ffmpeg" NOSNAP "$@"
3538
EOF
3639

3740
# Patch varia's python script to use AppImage directories

0 commit comments

Comments
 (0)