diff options
author | Antoine Fontaine <antoine.fontaine@epfl.ch> | 2020-03-11 01:17:11 +0100 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2020-03-10 22:05:29 -0300 |
commit | db71e0d805feea2bfc6082ecf0155ec3b5b4a80c (patch) | |
tree | 1309ceff8fcf86e502f5b1c76f9fa879d0ceb423 /testing/anbox/anbox-launch.sh | |
parent | 161ec9fdf23c35dbcc8a05b78f98788e1d7684d5 (diff) | |
download | aports-db71e0d805feea2bfc6082ecf0155ec3b5b4a80c.tar.bz2 aports-db71e0d805feea2bfc6082ecf0155ec3b5b4a80c.tar.xz |
testing/anbox: fix issues
* give even more time to start, because Android is visibly quite
long to start on a phone
* backport the input chmod patch, it unbreaks touch input on some
devices
* ignore wayland env vars, as they aren't actually working
Diffstat (limited to 'testing/anbox/anbox-launch.sh')
-rw-r--r-- | testing/anbox/anbox-launch.sh | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/testing/anbox/anbox-launch.sh b/testing/anbox/anbox-launch.sh index d843669ce6..ce5286a8df 100644 --- a/testing/anbox/anbox-launch.sh +++ b/testing/anbox/anbox-launch.sh @@ -1,9 +1,23 @@ #!/bin/sh -#if [ -z "$(ps aux | grep 'anbox session-manager' | grep -v grep)" ]; then -# anbox session-manager & -# sleep 5s -#fi +# https://gitlab.com/postmarketOS/pmaports/-/issues/479 +# EGL_PLATFORM=wayland is broken on desktop as +# Anbox require PBuffer support but Wayland EGL +# doesn't provide it. Unsetting this value +# unbreaks Anbox on e.g. Plasma Mobile. +if [ "$EGL_PLATFORM" = wayland ]; then + export EGL_PLATFORM + unset EGL_PLATFORM +fi -# We let Anbox autostart the session manager as this provides a splash-screen +# This breaks Anbox display if EGL_PLATFORM is not +# set to wayland. Since EGL_PLATFORM is never set +# to wayland, let's unset SDL_VIDEODRIVER if it is. +if [ "$SDL_VIDEODRIVER" = wayland ]; then + export SDL_VIDEODRIVER + unset SDL_VIDEODRIVER +fi + +# We let Anbox autostart the session manager as this +# provides a splash-screen anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity |