Skip to content

Commit 55b1529

Browse files
authored
Modify graph paths to use SHARUN_DIR
Updated paths in graphs to use SHARUN_DIR environment variable.
1 parent 3f6bccb commit 55b1529

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

make-appimage.sh

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

2525
# Patch Graphs to use AppImage's directory
26-
sed -i 's|graph_path_dir = "/usr/share/graphs"|graph_path_dir = os.getenv("SHARUN_DIR", "/usr") + "/share/graphs"|' ./AppDir/bin/graphs
27-
sed -i 's|localedir = "/usr/share/locale"|localedir = os.getenv("SHARUN_DIR", "/usr") + "/share/locale"|' ./AppDir/bin/graphs
28-
sed -i 's|localedir = "/usr/share/locale"|localedir = os.getenv("SHARUN_DIR", "/usr") + "/share/locale"|' ./AppDir/bin/graphs
26+
sed -i '/ import gi/a \
27+
SHARUN_DIR = os.getenv('"'"'SHARUN_DIR'"'"')' ./AppDir/bin/graphs
28+
sed -i 's|graph_path_dir = "/usr/share/graphs"|graph_path_dir = os.path.join(SHARUN_DIR, "/share/graphs")|' ./AppDir/bin/graphs
29+
sed -i 's|localedir = "/usr/share/locale"|localedir = os.path.join(SHARUN_DIR, "/share/locale")|' ./AppDir/bin/graphs
2930
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
3031

3132
# Turn AppDir into AppImage

0 commit comments

Comments
 (0)