mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-02-20 15:40:35 +00:00
feat(waydroid): Add new Waydroid launcher to streamline use
This commit is contained in:
parent
a4fce79f01
commit
708b25e29e
@ -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 && \
|
||||
|
@ -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
|
||||
|
@ -0,0 +1,4 @@
|
||||
[shell]
|
||||
clock-format=none
|
||||
panel-position=none
|
||||
background-color=0xff000000
|
Loading…
x
Reference in New Issue
Block a user