Need to be able to init on any distro.
The current supervisor.d configs are configured specifically for a particular supervisor version / installation. This decouples the configuration so we can use it on any distro.
This commit is contained in:
29
overlay/usr/bin/start-desktop.sh
Normal file
29
overlay/usr/bin/start-desktop.sh
Normal file
@@ -0,0 +1,29 @@
|
||||
#!/usr/bin/env bash
|
||||
###
|
||||
# File: start-desktop.sh
|
||||
# Project: bin
|
||||
# File Created: Thursday, 1st January 1970 12:00:00 pm
|
||||
# Author: Console and webGui login account (jsunnex@gmail.com)
|
||||
# -----
|
||||
# Last Modified: Wednesday, 26th January 2022 3:29:47 pm
|
||||
# Modified By: Console and webGui login account (jsunnex@gmail.com)
|
||||
###
|
||||
#
|
||||
# I made this wrapper script so that I could easily try a range of desktop environments
|
||||
#
|
||||
|
||||
XDG_RUNTIME_DIR=/run/user/$(id -u ${USER})
|
||||
#XAUTHORITY=${XDG_RUNTIME_DIR:-/home/${USER}/.xauthority}
|
||||
XDG_DATA_DIRS="${XDG_DATA_DIRS}:/var/lib/flatpak/exports/share:/home/${USER}/.local/share/flatpak/exports/share"
|
||||
export $(dbus-launch)
|
||||
|
||||
# TODO: Set the default background
|
||||
|
||||
# Run the desktop environment in order of priority
|
||||
if [[ -e /usr/bin/cinnamon-session ]]; then
|
||||
/usr/bin/cinnamon-session --display=${DISPLAY}
|
||||
elif [[ -e /usr/bin/startplasma-x11 ]]; then
|
||||
/usr/bin/startplasma-x11
|
||||
elif [[ -e /usr/bin/startxfce4 ]]; then
|
||||
/usr/bin/startxfce4
|
||||
fi
|
||||
@@ -5,13 +5,13 @@
|
||||
# File Created: Tuesday, 11th January 2022 8:28:52 pm
|
||||
# Author: Josh.5 (jsunnex@gmail.com)
|
||||
# -----
|
||||
# Last Modified: Tuesday, 11th January 2022 9:38:51 pm
|
||||
# Modified By: Josh.5 (jsunnex@gmail.com)
|
||||
# Last Modified: Monday, 24th January 2022 6:01:38 pm
|
||||
# Modified By: Console and webGui login account (jsunnex@gmail.com)
|
||||
###
|
||||
|
||||
DISPLAY=${DISPLAY:-:55}
|
||||
DISPLAY_DPI=${DPI:-:96}
|
||||
XDG_RUNTIME_DIR=${XDG_RUNTIME_DIR:-/tmp/.X11-unix}
|
||||
XDG_RUNTIME_DIR=/run/user/$(id -u ${USER})
|
||||
|
||||
|
||||
# Clear out old lock files
|
||||
|
||||
Reference in New Issue
Block a user