#!/sbin/openrc-run

XDG_CURRENT_DESKTOP=GNOME
export XDG_CURRENT_DESKTOP
XDG_SESSION_TYPE=wayland
export XDG_SESSION_TYPE
# HACK: Need better openrc env handling
DBUS_SESSION_BUS_ADDRESS="unix:path=${XDG_RUNTIME_DIR}/bus"
export DBUS_SESSION_BUS_ADDRESS
XDG_DATA_DIRS="$XDG_DATA_DIRS:/home/$USER/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share"
export XDG_DATA_DIRS
output_logger="logger"
error_logger="logger"

supervisor=supervise-daemon
description="GNOME Shell (wayland)"
command="/usr/bin/gnome-shell"
command_args="--wayland"
#command_background="true"
pidfile="${XDG_RUNTIME_DIR}/gnome-shell-wayland.pid"
