feat(waydroid): Add new Waydroid launcher to streamline use

This commit is contained in:
Kyle Gospodnetich 2023-10-02 11:04:21 -07:00
parent a4fce79f01
commit 708b25e29e
3 changed files with 8 additions and 4 deletions

View File

@ -237,7 +237,7 @@ RUN /tmp/image-info.sh && \
; fi && \
if grep -qv "nvidia" <<< "${IMAGE_NAME}"; then \
systemctl disable waydroid-container.service && \
sed -i 's@Exec=waydroid first-launch@Exec=/usr/bin/waydroid-launcher@g' /usr/share/applications/Waydroid.desktop && \
sed -i 's@Exec=waydroid@Exec=/usr/bin/waydroid-launcher@g' /usr/share/applications/Waydroid.desktop && \
rm /usr/share/wayland-sessions/weston.desktop \
; fi && \
mkdir -p /usr/etc/default && \

View File

@ -11,13 +11,13 @@ fi
killall -9 weston
pkexec /usr/bin/waydroid-container-start
if [ -z "$(pgrep weston)" ]; then
/usr/bin/weston --xwayland --width="${WAYDROID_WIDTH}" --height="${WAYDROID_HEIGHT}" &> /dev/null &
/usr/bin/weston --socket=weston-waydroid --width=${WAYDROID_WIDTH} --height=${WAYDROID_HEIGHT} &> /dev/null &
fi
sleep 2 &&
export XDG_SESSION_TYPE='wayland'
export DISPLAY=':1'
/usr/bin/waydroid show-full-ui &
export WAYLAND_DISPLAY='weston-waydroid'
/usr/bin/waydroid $@ &
while [ -n "$(pgrep weston)" ];do
sleep 1
done

View File

@ -0,0 +1,4 @@
[shell]
clock-format=none
panel-position=none
background-color=0xff000000