Skip to content

Commit 7234d12

Browse files
authored
Modify graph paths to use SHARUN_DIR
Updated paths in graphs script to use SHARUN_DIR for localization and graph resources.
1 parent c9cffe9 commit 7234d12

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
@@ -25,8 +25,8 @@ quick-sharun /usr/bin/graphs \
2525
# Patch Graphs to use AppImage's directory
2626
sed -i '/if __name__ == "__main__":/a \
2727
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
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
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
3131

3232
# Turn AppDir into AppImage

0 commit comments

Comments
 (0)