Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(gnome): Add nested desktop support from SteamOS
- Loading branch information
Showing
15 changed files
with
38 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
spec_files/steamdeck-gnome-presets/usr/bin/steamos-add-to-steam
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#! /bin/sh | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
|
18 changes: 4 additions & 14 deletions
18
spec_files/steamdeck-gnome-presets/usr/bin/steamos-nested-desktop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,8 @@ | ||
#!/bin/sh | ||
#!/usr/bin/env bash | ||
source /etc/default/steamos-nested-desktop | ||
|
||
# Remove the performance overlay, it meddles with some tasks | ||
unset LD_PRELOAD | ||
|
||
## Shadow kwin_wayland_wrapper so that we can pass args to kwin wrapper | ||
## whilst being launched by plasma-session | ||
mkdir $XDG_RUNTIME_DIR/nested_plasma -p | ||
cat <<EOF > $XDG_RUNTIME_DIR/nested_plasma/kwin_wayland_wrapper | ||
#!/bin/sh | ||
/usr/bin/kwin_wayland_wrapper --width 1280 --height 800 --no-lockscreen \$@ | ||
EOF | ||
chmod a+x $XDG_RUNTIME_DIR/nested_plasma/kwin_wayland_wrapper | ||
export PATH=$XDG_RUNTIME_DIR/nested_plasma:$PATH | ||
|
||
dbus-run-session startplasma-wayland | ||
|
||
rm $XDG_RUNTIME_DIR/nested_plasma/kwin_wayland_wrapper | ||
env MUTTER_DEBUG_DUMMY_MODE_SPECS=${STEAMOS_NESTED_DESKTOP_WIDTH:-1280}x${STEAMOS_NESTED_DESKTOP_HEIGHT:-800} \ | ||
dbus-run-session -- gnome-shell --nested --wayland |
Binary file modified
BIN
-111 KB
(35%)
...k-gnome-presets/usr/share/applications/steam/steamos-nested-desktop/capsule.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.26 MB
(9.9%)
...deck-gnome-presets/usr/share/applications/steam/steamos-nested-desktop/hero.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-18.8 KB
(4.1%)
...deck-gnome-presets/usr/share/applications/steam/steamos-nested-desktop/icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-155 KB
(18%)
...deck-gnome-presets/usr/share/applications/steam/steamos-nested-desktop/logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-164 KB
(38%)
...e-presets/usr/share/applications/steam/steamos-nested-desktop/store-capsule.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions
23
spec_files/steamdeck-kde-presets/nested-desktop-resolution.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
diff --git a/usr/bin/steamos-nested-desktop b/usr/bin/steamos-nested-desktop | ||
index 7cc1b05..22b345f 100755 | ||
--- a/usr/bin/steamos-nested-desktop | ||
+++ b/usr/bin/steamos-nested-desktop | ||
@@ -1,4 +1,4 @@ | ||
-#!/bin/sh | ||
+#!/usr/bin/env bash | ||
|
||
# Remove the performance overlay, it meddles with some tasks | ||
unset LD_PRELOAD | ||
@@ -7,8 +7,10 @@ unset LD_PRELOAD | ||
## whilst being launched by plasma-session | ||
mkdir $XDG_RUNTIME_DIR/nested_plasma -p | ||
cat <<EOF > $XDG_RUNTIME_DIR/nested_plasma/kwin_wayland_wrapper | ||
-#!/bin/sh | ||
-/usr/bin/kwin_wayland_wrapper --width 1280 --height 800 --no-lockscreen \$@ | ||
+#!/usr/bin/env bash | ||
+source /etc/default/steamos-nested-desktop | ||
+ | ||
+/usr/bin/kwin_wayland_wrapper --width ${STEAMOS_NESTED_DESKTOP_WIDTH:-1280} --height ${STEAMOS_NESTED_DESKTOP_HEIGHT:-800} --no-lockscreen \$@ | ||
EOF | ||
chmod a+x $XDG_RUNTIME_DIR/nested_plasma/kwin_wayland_wrapper | ||
export PATH=$XDG_RUNTIME_DIR/nested_plasma:$PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
system_files/deck/shared/usr/etc/default/steamos-nested-desktop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
STEAMOS_NESTED_DESKTOP_WIDTH=1280 | ||
STEAMOS_NESTED_DESKTOP_HEIGHT=800 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters