mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
wait for monitor to be attached before launching firefox (#2005)
* wait for monitor to be attached before launching firefox * add code to kill firefox on monitor disconnect * fix detection for the pi * Remove Pi only logic * chore: Remove the kiosk mode Co-authored-by: Aiden McClelland <me@drbonez.dev> Co-authored-by: J M <2364004+Blu-J@users.noreply.github.com> Co-authored-by: BluJ <mogulslayer@gmail.com>
This commit is contained in:
@@ -57,6 +57,15 @@ EOT
|
||||
while ! curl "http://localhost" > /dev/null; do
|
||||
sleep 1
|
||||
done
|
||||
while ! /usr/lib/embassy/scripts/check-monitor; do
|
||||
sleep 15
|
||||
done
|
||||
(
|
||||
while /usr/lib/embassy/scripts/check-monitor; do
|
||||
sleep 15
|
||||
done
|
||||
killall firefox-esr
|
||||
) &
|
||||
matchbox-window-manager -use_titlebar no &
|
||||
firefox-esr http://localhost --profile $PROFILE
|
||||
rm -rf $PROFILE
|
||||
|
||||
Reference in New Issue
Block a user