chore: Move waydroid scripts to libexec

This commit is contained in:
Kyle Gospodnetich 2023-11-03 00:18:51 -07:00
parent 17ffc696e1
commit b63c1de6f7
6 changed files with 8 additions and 7 deletions

View File

@ -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

View File

@ -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

View File

@ -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>