Add snap configure hook to allow enable debug mode
This commit is contained in:
parent
a88faed6d3
commit
83215524de
4 changed files with 17 additions and 1 deletions
|
|
@ -43,6 +43,10 @@ start() {
|
|||
$SNAP/sbin/apparmor_parser -r $SNAP/apparmor/anbox-container.aa
|
||||
fi
|
||||
|
||||
if [ -e "$SNAP_COMMON"/.enable_debug ]; then
|
||||
export ANBOX_LOG_LEVEL=debug
|
||||
fi
|
||||
|
||||
exec $AA_EXEC $SNAP/bin/anbox-wrapper.sh container-manager \
|
||||
--data-path=$DATA_PATH \
|
||||
--android-image=$ANDROID_IMG \
|
||||
|
|
|
|||
|
|
@ -29,4 +29,8 @@ export XDG_DATA_HOME="$SNAP_USER_COMMON/app-data"
|
|||
# configured but the actual EGL implementation is missing.
|
||||
export __EGL_VENDOR_LIBRARY_DIRS="$SNAP/glvnd"
|
||||
|
||||
if [ -e "$SNAP_COMMON"/.enable_debug ]; then
|
||||
export ANBOX_LOG_LEVEL=debug
|
||||
fi
|
||||
|
||||
exec $SNAP/usr/bin/anbox $@
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue