summaryrefslogtreecommitdiff
path: root/usr/bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr/bin')
-rwxr-xr-xusr/bin/phosh-session57
1 files changed, 0 insertions, 57 deletions
diff --git a/usr/bin/phosh-session b/usr/bin/phosh-session
deleted file mode 100755
index e3337444..00000000
--- a/usr/bin/phosh-session
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/sh
-
-COMPOSITOR="/usr/bin/phoc"
-PHOC_INI="/usr/share/phosh/phoc.ini"
-GNOME_SESSION=${GNOME_SESSION:-gnome-session}
-
-help()
-{
- cat <<EOF
-phosh-session - Session start script for Phosh
-
-This is usually invoked by a display manager but you can
-also run it from a tty.
-
-Usage: phosh
-EOF
- exit 0
-}
-
-
-version()
-{
- echo "0.37.0"
- exit 0
-}
-
-case "$1" in
- -h|-\?|--help)
- help
- ;;
- --version)
- version
- ;;
-esac
-
-if [ -x /usr/bin/phoc ]; then
- COMPOSITOR=/usr/bin/phoc
-fi
-
-ROOTSTON_INI=/etc/phosh/rootston.ini
-if [ -f /etc/phosh/phoc.ini ]; then
- PHOC_INI=/etc/phosh/phoc.ini
-elif [ -f "${ROOTSTON_INI}" ]; then
- echo "WARN: Deprecated ${ROOTSTON_INI} detected - please rename to phoc.ini"
- PHOC_INI="${ROOTSTON_INI}"
-fi
-
-if [ -f "$HOME/.phoshdebug" ]; then
- echo "WARN: .phoshdebug found."
- . "$HOME/.phoshdebug"
-fi
-
-# Run gnome-session through a login shell so it picks
-# variables from /etc/profile.d (XDG_*)
-[ -n "$WLR_BACKENDS" ] || WLR_BACKENDS=drm,libinput
-export WLR_BACKENDS
-exec "${COMPOSITOR}" -S -C "${PHOC_INI}" -E "bash -lc 'exec ${GNOME_SESSION} --disable-acceleration-check --session=phosh'"