Skip to content

Commit 65c5fa6

Browse files
authored
Patch the secrets python bin instead of using PATH_MAPPING
1 parent b556735 commit 65c5fa6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

make-appimage.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ export DEPLOY_SYS_PYTHON=1
1414
export DEPLOY_OPENGL=1
1515
export DEPLOY_GTK=1
1616
export GTK_DIR=gtk-4.0
17-
export PATH_MAPPING='
18-
/usr/share/secrets:${SHARUN_DIR}/share/secrets
19-
/usr/share/locale:${SHARUN_DIR}/share/locale
20-
'
2117
export ANYLINUX_LIB=1
2218
export DEPLOY_LOCALE=1
2319
export STARTUPWMCLASS=secrets # For Wayland, this is 'org.gnome.World.Secrets', so this needs to be changed in desktop file manually by the user in that case until some potential automatic fix exists for this
@@ -26,5 +22,9 @@ export STARTUPWMCLASS=secrets # For Wayland, this is 'org.gnome.World.Secrets',
2622
quick-sharun /usr/bin/secrets \
2723
/usr/lib/libgirepository*
2824

25+
# Patch secrets to use AppImage's directory
26+
sed -i '/const.PKGDATADIR/c\os.getenv("SHARUN_DIR"), "share"' ./AppDir/bin/secrets
27+
sed -i '/const.LOCALEDIR/c\os.getenv("SHARUN_DIR"), "share", "locale"' ./AppDir/bin/secrets
28+
2929
# Turn AppDir into AppImage
3030
quick-sharun --make-appimage

0 commit comments

Comments
 (0)