Browse Source

Add wrapper script

master
Pekka Helenius 4 years ago
parent
commit
7575186755
2 changed files with 16 additions and 0 deletions
  1. +6
    -0
      README.md
  2. +10
    -0
      anbox_files/anbox-session-manager

+ 6
- 0
README.md View File

@ -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)


+ 10
- 0
anbox_files/anbox-session-manager View File

@ -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

Loading…
Cancel
Save