Skip to content

Commit c6852d9

Browse files
authored
Patch Graphs to use SHARUN_DIR environment variable
1 parent 55b1529 commit c6852d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

make-appimage.sh

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

2525
# Patch Graphs to use AppImage's directory
26-
sed -i '/ import gi/a \
27-
SHARUN_DIR = os.getenv('"'"'SHARUN_DIR'"'"')' ./AppDir/bin/graphs
26+
sed -i '/if __name__ == "__main__":/a \
27+
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
3030
sed -i 's|gresource_location = os.path.join("/usr/share/graphs", "se.sjoerd.Graphs.gresource")|gresource_location = os.path.join(graph_path_dir, "se.sjoerd.Graphs.gresource")|' ./AppDir/bin/graphs

0 commit comments

Comments
 (0)