Skip to content

Commit 75128f7

Browse files
authored
Create flip-exec-order.src.hook
1 parent 3574cc3 commit 75128f7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/sh
2+
3+
# This hook is used together with search-integration hook because this app doesn't supply dbus service through '--gapplication-service' flag,
4+
# but through the separate binary called 'cartridges-search-provider'.
5+
# So to avoid the unnecessary clutter of making the symlink of 'cartridges-search-provider' from the AppImage to make it work,
6+
# we just allow it to get called as the first argument inside 'cartridges' AppImage itself, eliminating this issue.
7+
8+
# Check if 'cartridges-search-provider' is supplied as $1, then if ARGV0 is supplied, then if $1 is supplied as binary, then if it's the main bin
9+
if [ -f "$CURRENTDIR"/bin/"$1" ] && [ "$1" = "cartridges-search-provider" ]; then
10+
BIN="$1"
11+
shift
12+
exec "$CURRENTDIR"/bin/"$BIN" "$@"
13+
fi

0 commit comments

Comments
 (0)