2023-10-22 21:47:45 +00:00
|
|
|
diff --git a/usr/bin/steamos-nested-desktop b/usr/bin/steamos-nested-desktop
|
2024-06-27 05:13:38 +00:00
|
|
|
index b833773..f7ae36f 100755
|
2023-10-22 21:47:45 +00:00
|
|
|
--- a/usr/bin/steamos-nested-desktop
|
|
|
|
+++ b/usr/bin/steamos-nested-desktop
|
|
|
|
@@ -1,4 +1,4 @@
|
|
|
|
-#!/bin/sh
|
2023-12-23 03:22:29 +00:00
|
|
|
+#!/usr/bin/bash
|
2023-10-22 21:47:45 +00:00
|
|
|
|
2024-06-27 05:13:38 +00:00
|
|
|
set -eu
|
|
|
|
|
2024-08-17 23:43:44 +00:00
|
|
|
@@ -28,8 +28,11 @@ ln -s $XDG_RUNTIME_DIR/pipewire* $NEW_XDG_RUNTIME_DIR/.
|
2023-10-22 21:47:45 +00:00
|
|
|
## whilst being launched by plasma-session
|
2024-06-27 05:13:38 +00:00
|
|
|
mkdir $NEW_XDG_RUNTIME_DIR/bin
|
|
|
|
cat <<EOF > $NEW_XDG_RUNTIME_DIR/bin/kwin_wayland_wrapper
|
2023-10-22 21:47:45 +00:00
|
|
|
-#!/bin/sh
|
|
|
|
-/usr/bin/kwin_wayland_wrapper --width 1280 --height 800 --no-lockscreen \$@
|
2023-12-23 03:22:29 +00:00
|
|
|
+#!/usr/bin/bash
|
2024-08-17 23:43:44 +00:00
|
|
|
+if [ -z "${STEAMOS_NESTED_DESKTOP_WIDTH:-}" ] && [ -z "${STEAMOS_NESTED_DESKTOP_HEIGHT:-}" ]; then
|
|
|
|
+ source /etc/default/steamos-nested-desktop
|
|
|
|
+fi
|
2023-10-22 21:47:45 +00:00
|
|
|
+/usr/bin/kwin_wayland_wrapper --width ${STEAMOS_NESTED_DESKTOP_WIDTH:-1280} --height ${STEAMOS_NESTED_DESKTOP_HEIGHT:-800} --no-lockscreen \$@
|
|
|
|
EOF
|
2024-06-27 05:13:38 +00:00
|
|
|
chmod a+x $NEW_XDG_RUNTIME_DIR/bin/kwin_wayland_wrapper
|
|
|
|
export PATH=$NEW_XDG_RUNTIME_DIR/bin:$PATH
|