mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-03-23 19:20:50 +00:00
chore: Move waydroid scripts to libexec
This commit is contained in:
parent
17ffc696e1
commit
b63c1de6f7
@ -21,4 +21,5 @@ elif [ "${ACTION}" = "onpoweroff" ] && [ "$CEC_ONPOWEROFF_STANDBY" = true ]; the
|
||||
elif [ "${ACTION}" = "onsleep" ] && [ "$CEC_ONSLEEP_STANDBY" = true ]; then
|
||||
echo "standby $CEC_TVID" | cec-client -s -d 1
|
||||
fi
|
||||
|
||||
exit 0
|
||||
|
@ -4,7 +4,7 @@ source /etc/default/waydroid-launcher
|
||||
|
||||
# Kill any previous remnants
|
||||
if [ "$(systemctl is-active waydroid-container.service)" == 'active' ]; then
|
||||
pkexec /usr/bin/waydroid-container-stop
|
||||
pkexec /usr/libexec/waydroid-container-stop
|
||||
fi
|
||||
|
||||
# Check if Waydroid is initialized, initialize if not
|
||||
@ -14,7 +14,7 @@ fi
|
||||
|
||||
# Launch Weston
|
||||
killall -9 weston
|
||||
pkexec /usr/bin/waydroid-container-start
|
||||
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 &
|
||||
fi
|
||||
@ -30,7 +30,7 @@ LAUNCH_PARAM=$@
|
||||
while [ "" == "$(pgrep surfaceflinger)" ]; do
|
||||
sleep 1
|
||||
done
|
||||
pkexec /usr/bin/waydroid-fix-controllers
|
||||
pkexec /usr/libexec/waydroid-fix-controllers
|
||||
|
||||
# Waydroid is now live!
|
||||
# Wait for exit and then clean up
|
||||
@ -38,4 +38,4 @@ while [ -n "$(pgrep weston)" ]; do
|
||||
sleep 1
|
||||
done
|
||||
|
||||
pkexec /usr/bin/waydroid-container-stop
|
||||
pkexec /usr/libexec/waydroid-container-stop
|
||||
|
@ -14,7 +14,7 @@
|
||||
<allow_inactive>yes</allow_inactive>
|
||||
<allow_active>yes</allow_active>
|
||||
</defaults>
|
||||
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/waydroid-container-start</annotate>
|
||||
<annotate key="org.freedesktop.policykit.exec.path">/usr/libexec/waydroid-container-start</annotate>
|
||||
</action>
|
||||
|
||||
<action id="org.bazzite.policykit.waydroid.container.stop">
|
||||
@ -25,7 +25,7 @@
|
||||
<allow_inactive>yes</allow_inactive>
|
||||
<allow_active>yes</allow_active>
|
||||
</defaults>
|
||||
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/waydroid-container-stop</annotate>
|
||||
<annotate key="org.freedesktop.policykit.exec.path">/usr/libexec/waydroid-container-stop</annotate>
|
||||
</action>
|
||||
|
||||
<action id="org.bazzite.policykit.waydroid.fix.controllers">
|
||||
@ -36,6 +36,6 @@
|
||||
<allow_inactive>yes</allow_inactive>
|
||||
<allow_active>yes</allow_active>
|
||||
</defaults>
|
||||
<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/waydroid-fix-controllers</annotate>
|
||||
<annotate key="org.freedesktop.policykit.exec.path">/usr/libexec/waydroid-fix-controllers</annotate>
|
||||
</action>
|
||||
</policyconfig>
|
||||
|
Loading…
x
Reference in New Issue
Block a user