Initial commit
This commit is contained in:
25
dists/snap/scripts/bin/daemon-start.sh
Normal file
25
dists/snap/scripts/bin/daemon-start.sh
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
|
||||
real_xdg_runtime_dir=$(dirname "${XDG_RUNTIME_DIR}")
|
||||
real_wayland=${real_xdg_runtime_dir}/${WAYLAND_DISPLAY:-wayland-0}
|
||||
|
||||
if [ ! -O "${real_wayland}" ]; then
|
||||
# On core systems mir-kiosk may also need to create the host XDG_RUNTIME_DIR
|
||||
if [ ! -O "${real_xdg_runtime_dir}" ]; then
|
||||
echo waiting for host XDG_RUNTIME_DIR...
|
||||
until [ -O "${real_xdg_runtime_dir}" ]
|
||||
do
|
||||
inotifywait --event create $(dirname "${real_xdg_runtime_dir}") || sleep 4
|
||||
done
|
||||
fi
|
||||
|
||||
echo waiting for Wayland socket...
|
||||
until [ -O "${real_wayland}" ]
|
||||
do
|
||||
inotifywait --event create $(dirname "${real_wayland}") || sleep 4
|
||||
done
|
||||
|
||||
echo ...waiting done
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user