#!/usr/bin/env bash set -u # STORMUX_LAUNCH_SCRIPT may point at a selected .launch recipe; otherwise GAME is used as a fallback lookup key. # shellcheck disable=SC1091 source /home/stormux/.local/bin/stormux_launch_helpers.sh if [[ -e /etc/X11/xorg.conf.d/10-headless.conf ]]; then export LIBGL_ALWAYS_SOFTWARE=1 fi if [[ -f /etc/xprofile ]]; then # shellcheck source=/dev/null source /etc/xprofile fi if [[ -f "${HOME}/.xprofile" ]]; then # shellcheck source=/dev/null source "${HOME}/.xprofile" fi if [[ "$(uname -m)" != "x86_64" ]]; then export BOX64_PATH="${HOME}/.fex-emu/RootFS/ArchLinux/usr/bin" export BOX64_NOBANNER=1 export BOX64_DYNAREC_STRONGMEM=1 fi export MESA_GL_VERSION_OVERRIDE=3.2 export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus export DBUS_SESSION_BUS_PID dwm & xbindkeys dispatch_launch_request launchStatus=$? pkill -15 Xorg exit "$launchStatus"