make onboarding window it’s own class and don’t restart other chromium instances

This commit is contained in:
2024-02-19 16:34:03 +01:00
parent 4c0c36a8ba
commit adf5e42828
2 changed files with 7 additions and 3 deletions
@@ -12,11 +12,11 @@ COMMAND="chromium-browser \
--app=file:///media/assets/data/index.html"
if [ $EUID == 0 ]; then
pkill chrome
/bin/bash /assets/presentation/stop-presentation.sh
sleep 0.1
su tooloop -c "$COMMAND" &
else
pkill chrome
/bin/bash /assets/presentation/stop-presentation.sh
sleep 0.1
$COMMAND &
fi
@@ -1,5 +1,9 @@
#!/bin/bash
pkill chrome &
pids=$(xdotool search --class "TooloopOnboarding")
for pid in $pids; do
xkill -id $pid
break
done
exit 0