Skip to content

Commit

Permalink
fix: ewaydroid waiting in loop for a systemd service never started
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkobrombin committed Jan 29, 2024
1 parent a48bdde commit 30eb738
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions includes.container/usr/bin/ewaydroid
Original file line number Diff line number Diff line change
@@ -1,18 +1,6 @@
#!/bin/bash
# Waydroid wrapper with the proper environment

echo "Checking if Waydroid was initialized..."

while systemctl is-active waydroid-init >/dev/null; do
animation="Waiting for Waydroid initialization to complete"
for i in {1..3}; do
echo -ne "$animation... \r"
sleep 1
animation="$animation."
done
echo -ne "\r\033[K"
done

export XDG_RUNTIME_DIR="/run/host/${XDG_RUNTIME_DIR}"
export DBUS_SESSION_BUS_ADDRESS="unix:path=/run/host/$(echo "${DBUS_SESSION_BUS_ADDRESS}" | cut -d '=' -f2-)"

Expand Down

0 comments on commit 30eb738

Please sign in to comment.