Fix install-session startx wrapper
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
# shellcheck disable=SC2154
|
||||
|
||||
scriptDir="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
|
||||
installSessionScript="${scriptDir%/.functions}/bin/stormux_install_session.sh"
|
||||
# shellcheck disable=SC1091
|
||||
source "${scriptDir}/download.sh"
|
||||
# shellcheck disable=SC1091
|
||||
@@ -123,13 +124,16 @@ run_install_x_command() {
|
||||
local quotedCommand=""
|
||||
|
||||
check_dependencies startx
|
||||
if [[ ! -x "$installSessionScript" ]]; then
|
||||
ui_msgbox "Game Installer" "Game Installer" "Missing install session helper: ${installSessionScript}"
|
||||
exit 1
|
||||
fi
|
||||
printf -v quotedCommand '%q ' "$@"
|
||||
quotedCommand="${quotedCommand% }"
|
||||
|
||||
env DISPLAY="${DISPLAY:-:0}" \
|
||||
STORMUX_X_SESSION_MODE=install \
|
||||
env -u DISPLAY \
|
||||
STORMUX_INSTALL_COMMAND="$quotedCommand" \
|
||||
startx
|
||||
startx "$installSessionScript"
|
||||
}
|
||||
|
||||
run_wine_headless() {
|
||||
|
||||
10
home/stormux/.local/bin/stormux_install_session.sh
Executable file
10
home/stormux/.local/bin/stormux_install_session.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -u
|
||||
|
||||
scriptDir="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
|
||||
|
||||
# shellcheck disable=SC1091
|
||||
source "${scriptDir}/stormux_launch_helpers.sh"
|
||||
|
||||
run_install_session_command
|
||||
@@ -30,13 +30,6 @@ export MESA_GL_VERSION_OVERRIDE=3.2
|
||||
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
|
||||
export DBUS_SESSION_BUS_PID
|
||||
|
||||
if [[ "${STORMUX_X_SESSION_MODE:-}" == "install" ]]; then
|
||||
run_install_session_command
|
||||
launchStatus=$?
|
||||
pkill -15 Xorg
|
||||
exit "$launchStatus"
|
||||
fi
|
||||
|
||||
dwm &
|
||||
xbindkeys
|
||||
|
||||
|
||||
Reference in New Issue
Block a user