mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-27 21:35:24 +00:00
fix: Fix cage check in waydroid
This commit is contained in:
parent
b36d788e49
commit
d4b587d389
@ -12,8 +12,7 @@ if grep -qz 'not initialized' <<< $(/usr/bin/waydroid status); then
|
|||||||
/usr/bin/ujust init-waydroid
|
/usr/bin/ujust init-waydroid
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Launch Weston
|
# Launch Cage & Waydroid
|
||||||
killall -9 weston
|
|
||||||
pkexec /usr/libexec/waydroid-container-start
|
pkexec /usr/libexec/waydroid-container-start
|
||||||
if [ -z "$(pgrep wlr-randr)" ]; then
|
if [ -z "$(pgrep wlr-randr)" ]; then
|
||||||
cage -- bash -c "wlr-randr --output X11-1 --custom-mode ${WAYDROID_WIDTH:-1280}x${WAYDROID_HEIGHT:-800}; sleep 1; waydroid show-full-ui &> /dev/null &"
|
cage -- bash -c "wlr-randr --output X11-1 --custom-mode ${WAYDROID_WIDTH:-1280}x${WAYDROID_HEIGHT:-800}; sleep 1; waydroid show-full-ui &> /dev/null &"
|
||||||
@ -28,7 +27,7 @@ pkexec /usr/libexec/waydroid-fix-controllers
|
|||||||
|
|
||||||
# Waydroid is now live!
|
# Waydroid is now live!
|
||||||
# Wait for exit and then clean up
|
# Wait for exit and then clean up
|
||||||
while [ -n "$(pgrep weston)" ]; do
|
while [ -n "$(pgrep cage)" ]; do
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user