Skip to content

Commit d4c85d8

Browse files
morphisSimon Fels
authored andcommitted
scripts: use custom anbox binary for debugging if available
1 parent 0a49ae0 commit d4c85d8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

scripts/snap-wrapper.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,10 @@ if [ "$(snapctl get touch-emulation.enable)" = false ]; then
4747
export ANBOX_ENABLE_TOUCH_EMULATION=false
4848
fi
4949

50-
exec "$SNAP"/usr/bin/anbox "$@"
50+
# Use custom Anbox binary for debugging purposes if available
51+
ANBOX="$SNAP"/usr/bin/anbox
52+
if [ -e "$SNAP_COMMON"/anbox.debug ]; then
53+
ANBOX="$SNAP_COMMON"/anbox.debug
54+
fi
55+
56+
exec "$ANBOX" "$@"

0 commit comments

Comments
 (0)