Fix install-session startx wrapper
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
# shellcheck disable=SC2154
|
# shellcheck disable=SC2154
|
||||||
|
|
||||||
scriptDir="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
|
scriptDir="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
|
||||||
|
installSessionScript="${scriptDir%/.functions}/bin/stormux_install_session.sh"
|
||||||
# shellcheck disable=SC1091
|
# shellcheck disable=SC1091
|
||||||
source "${scriptDir}/download.sh"
|
source "${scriptDir}/download.sh"
|
||||||
# shellcheck disable=SC1091
|
# shellcheck disable=SC1091
|
||||||
@@ -123,13 +124,16 @@ run_install_x_command() {
|
|||||||
local quotedCommand=""
|
local quotedCommand=""
|
||||||
|
|
||||||
check_dependencies startx
|
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 ' "$@"
|
printf -v quotedCommand '%q ' "$@"
|
||||||
quotedCommand="${quotedCommand% }"
|
quotedCommand="${quotedCommand% }"
|
||||||
|
|
||||||
env DISPLAY="${DISPLAY:-:0}" \
|
env -u DISPLAY \
|
||||||
STORMUX_X_SESSION_MODE=install \
|
|
||||||
STORMUX_INSTALL_COMMAND="$quotedCommand" \
|
STORMUX_INSTALL_COMMAND="$quotedCommand" \
|
||||||
startx
|
startx "$installSessionScript"
|
||||||
}
|
}
|
||||||
|
|
||||||
run_wine_headless() {
|
run_wine_headless() {
|
||||||
|
|||||||
+10
@@ -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_ADDRESS=unix:path=/run/user/1000/bus
|
||||||
export DBUS_SESSION_BUS_PID
|
export DBUS_SESSION_BUS_PID
|
||||||
|
|
||||||
if [[ "${STORMUX_X_SESSION_MODE:-}" == "install" ]]; then
|
|
||||||
run_install_session_command
|
|
||||||
launchStatus=$?
|
|
||||||
pkill -15 Xorg
|
|
||||||
exit "$launchStatus"
|
|
||||||
fi
|
|
||||||
|
|
||||||
dwm &
|
dwm &
|
||||||
xbindkeys
|
xbindkeys
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user