Skip to content

Commit 30663f0

Browse files
authored
Update Graphs script for AppImage compatibility
Modify Graphs script to use environment variable for paths.
1 parent 577e139 commit 30663f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

make-appimage.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ quick-sharun /usr/bin/graphs \
2323
/usr/lib/libgirepository*
2424

2525
# Patch Graphs to use AppImage's directory
26-
sed -i '/if __name__ == "__main__":/a \
26+
sed -i '/ import gi/a\
2727
SHARUN_DIR = os.getenv('"'"'SHARUN_DIR'"'"')' ./AppDir/bin/graphs
2828
sed -i 's|graph_path_dir = "/usr/share/graphs"|graph_path_dir = os.path.join(SHARUN_DIR, '"'"'share'"'"', '"'"'graphs'"'"')|' ./AppDir/bin/graphs
2929
sed -i 's|localedir = "/usr/share/locale"|localedir = os.path.join(SHARUN_DIR, '"'"'share'"'"', '"'"'locale'"'"')|' ./AppDir/bin/graphs

0 commit comments

Comments
 (0)