Skip to content

Commit

Permalink
run: Select a suitable backend for nested
Browse files Browse the repository at this point in the history
This simplifies e.g. getting a nested phosh/phoc session up. We
prefer wayland over x11 backend if both are available. For
the drm case we have the `phoc-dev` scripts anyway.
  • Loading branch information
agx authored and dos1 committed Dec 15, 2021
1 parent c55a650 commit 81f9826
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions run.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ set -e
ABS_BUILDDIR='@ABS_BUILDDIR@'
ABS_SRCDIR='@ABS_SRCDIR@'

[ -z "${DISPLAY}" ] || WLR_BACKENDS=x11
[ -z "${WAYLAND_DISPLAY}" ] || WLR_BACKENDS=wayland
export WLR_BACKENDS

export GSETTINGS_SCHEMA_DIR="${ABS_BUILDDIR}/data"
set -x
exec "${ABS_BUILDDIR}/src/phoc" "$@"

0 comments on commit 81f9826

Please sign in to comment.