File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
live/root/root/.local/bin Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 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
518sleep 1.0
619exec " $0 " " $@ "
You can’t perform that action at this time.
0 commit comments