Skip to content

Commit e9dc62a

Browse files
committed
Updated kiosk startup script
1 parent 52bb712 commit e9dc62a

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed
Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,19 @@
11
#!/bin/sh
2+
# Start a browser to connect to Agama's web user interface skipping the authentication.
3+
# This script is invoked as a part of gnome-kiosk startup procedure. See /usr/bin/gnome-kiosk-script
4+
# which is at the end of the chain and invokes this script.
25

3-
firefox --kiosk http://agama.local
6+
TOKEN_FILE=/run/agama/token
7+
TOKEN=$(cat $TOKEN_FILE)
8+
PREFS=$HOME/.mozilla/firefox/profile/user.js
9+
10+
sed -e "s/__HOMEPAGE__/http:\/\/localhost\/login?token=$TOKEN/" $PREFS.template > $PREFS
11+
firefox --profile $HOME/.mozilla/firefox/profile
12+
# Here, we would like to see
13+
#
14+
# firefox --kiosk --profile $HOME/.mozilla/firefox/profile
15+
#
16+
# But sadly firefox currently ends with black screen on wayland when run with --kiosk
417

518
sleep 1.0
619
exec "$0" "$@"

0 commit comments

Comments
 (0)