We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
KyleGospo
antheas
nicknamenamenick
HikariKnight
Learn more about funding links in repositories.
Report abuse
1 parent d10c15a commit 5f5f74dCopy full SHA for 5f5f74d
system_files/desktop/shared/usr/bin/waydroid-launcher
@@ -7,6 +7,11 @@ if [ "$(systemctl is-active waydroid-container.service)" == 'active' ]; then
7
pkexec /usr/bin/waydroid-container-stop
8
fi
9
10
+# Check if Waydroid is initialized, initialize if not
11
+if grep -qz 'not initialized' <<< $(/usr/bin/waydroid status); then
12
+ /usr/bin/ujust init-waydroid
13
+fi
14
+
15
# Launch Weston
16
killall -9 weston
17
pkexec /usr/bin/waydroid-container-start
@@ -18,7 +23,8 @@ fi
18
23
sleep 2 &&
19
24
export XDG_SESSION_TYPE='wayland'
20
25
export WAYLAND_DISPLAY='weston-waydroid'
21
-/usr/bin/waydroid $@ &
26
+LAUNCH_PARAM=$@
27
+/usr/bin/waydroid ${LAUNCH_PARAM:-first-launch} &
22
28
29
# Fix controllers, we know Waydroid has started because surfaceflinger is running
30
while [ "" == "$(pgrep surfaceflinger)" ]; do
0 commit comments