From 7575186755d66dbffcdcc199023a267b79ca597e Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Fri, 12 Jun 2020 12:07:32 +0300 Subject: [PATCH] Add wrapper script --- README.md | 6 ++++++ anbox_files/anbox-session-manager | 10 ++++++++++ 2 files changed, 16 insertions(+) create mode 100755 anbox_files/anbox-session-manager diff --git a/README.md b/README.md index 113917c..1170191 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,12 @@ After=lxc.service LXC container user and group mapping files `/etc/subuid` and `/etc/subgid` for Android OS container. +#### anbox-session-manager (shell script) + +Simple wrapper script to be added into desktop startup program configuration. This is a simple work around script. If `anbox-session-manager` Systemd service is launched _before_ X11 session, launching the X11 session fails for unknown reasons. This script ensures that X11 session is launched _before_ `anbox-session-manager` Systemd service. + +Place into `/usr/local/bin/` folder. + #### Patch files - [patch_audio01_timing.patch](anbox_files/patch_audio01_timing.patch) & [patch_audio02_pass-messenger.patch](anbox_files/patch_audio02_pass-messenger.patch) diff --git a/anbox_files/anbox-session-manager b/anbox_files/anbox-session-manager new file mode 100755 index 0000000..f76c96e --- /dev/null +++ b/anbox_files/anbox-session-manager @@ -0,0 +1,10 @@ +#!/bin/env bash + +# This is a simple wrapper workaround. If we launch Anbox session manager before a desktop/Xorg session, +# the session simply fails to launch, complaining about insufficient drm permissions (permission denied 13) +# in a Xorg log file. + +# Use this script as start-up program in your desktop session start-up application menu. It ensures that +# Xorg session starts BEFORE Anbox session manager, and both succeed to launch. + +[[ $(systemctl is-active anbox-container-manager.service) ]] && systemctl --user start anbox-session-manager