Commit 9d249d77 authored by Guido Gunther's avatar Guido Gunther
Browse files

Merge branch 'phoc' into 'master'

phosh.in: Prefer phoc over rootston

See merge request Librem5/phosh!196
parents 6a6e11af a3ef9636
#!/bin/sh
ROOTSTON="/usr/bin/rootston"
COMPOSITOR="/usr/bin/rootston"
ROOTSTON_INI="@pkgdatadir@/rootston.ini"
if [ -x @wlrootsdir@/rootston ]; then
ROOTSTON=@wlrootsdir@/rootston
if [ -x @bindir@/phoc ]; then
COMPOSITOR=@bindir@/phoc
elif [ -x /usr/bin/phoc ]; then
COMPOSITOR=/usr/bin/phoc
elif [ -x @wlrootsdir@/rootston ]; then
COMPOSITOR=@wlrootsdir@/rootston
elif [ -x @bindir@/rootston ]; then
ROOTSTON=@bindir@/rootston
COMPOSITOR=@bindir@/rootston
elif [ -x /usr/lib/wlroots/rootston ]; then
ROOTSTON=/usr/lib/wlroots/rootston
COMPOSITOR=/usr/lib/wlroots/rootston
fi
if [ -f "/etc/phosh/rootston.ini" ]; then
......@@ -17,4 +21,4 @@ fi
# Run gnome-session through a login shell so it picks
# variables from /etc/profile.d (XDG_*)
exec "${ROOTSTON}" -C "${ROOTSTON_INI}" -E "bash -lc 'gnome-session --disable-acceleration-check --session=phosh'"
exec "${COMPOSITOR}" -C "${ROOTSTON_INI}" -E "bash -lc 'gnome-session --disable-acceleration-check --session=phosh'"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment