Skip to content

Commit

Permalink
feat: Use automatic desktop sizing from nested desktop for Waydroid
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Jan 31, 2024
1 parent 2867aef commit 3beaff3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion system_files/desktop/shared/usr/bin/waydroid-launcher
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/bash

source /etc/default/waydroid-launcher
source /etc/default/steamos-nested-desktop

# Kill any previous remnants
if [ "$(systemctl is-active waydroid-container.service)" == 'active' ]; then
Expand All @@ -16,7 +17,7 @@ fi
killall -9 weston
pkexec /usr/libexec/waydroid-container-start
if [ -z "$(pgrep weston)" ]; then
/usr/bin/weston --socket=weston-waydroid --width=${WAYDROID_WIDTH:-1280} --height=${WAYDROID_HEIGHT:-800} &> /dev/null &
/usr/bin/weston --socket=weston-waydroid --width=${STEAMOS_NESTED_DESKTOP_WIDTH:-1280} --height=${STEAMOS_NESTED_DESKTOP_HEIGHT:-800} &> /dev/null &
fi

# Launch Waydroid
Expand Down

0 comments on commit 3beaff3

Please sign in to comment.