Skip to content

Commit 8ed7dc7

Browse files
authored
Try again
1 parent c0be08e commit 8ed7dc7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

make-appimage.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ quick-sharun /usr/bin/secrets \
2323
/usr/lib/libgirepository*
2424

2525
# Patch secrets to use AppImage's directory
26-
sed -i 's|const.PKGDATADIR|os.getenv("SHARUN_DIR"), "share"|' ./AppDir/bin/secrets
27-
sed -i 's|const.LOCALEDIR|os.getenv("SHARUN_DIR"), "share", "locale"|' ./AppDir/bin/secrets
26+
sed -i '/from gsecrets import const/a \
27+
SHARUN_DIR = os.getenv('"'"'SHARUN_DIR'"'"')\n\
28+
PKGDATADIR = os.path.join(SHARUN_DIR, '"'"'share'"'"')\n\
29+
LOCALEDIR = os.path.join(SHARUN_DIR, '"'"'share'"'"', '"'"'locale'"'"')' ./AppDir/bin/secrets
2830

2931
# Turn AppDir into AppImage
3032
quick-sharun --make-appimage

0 commit comments

Comments
 (0)