diff --git a/live/root/.icewm/startup b/live/root/.icewm/startup deleted file mode 100755 index 7f8d091d27..0000000000 --- a/live/root/.icewm/startup +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env sh -# Start a browser to connect to Agama's web user interface skipping the authentication. - -TOKEN_FILE=/run/agama/token -TOKEN=$(cat $TOKEN_FILE) -PREFS=$HOME/.mozilla/firefox/profile/user.js - -sed -e "s/__HOMEPAGE__/http:\/\/localhost\/login?token=$TOKEN/" $PREFS.template > $PREFS -firefox --kiosk --profile $HOME/.mozilla/firefox/profile diff --git a/live/root/root/.icewm/startup b/live/root/root/.icewm/startup index 209d5242e2..7f8d091d27 100755 --- a/live/root/root/.icewm/startup +++ b/live/root/root/.icewm/startup @@ -1,3 +1,9 @@ -#! /bin/sh +#!/usr/bin/env sh +# Start a browser to connect to Agama's web user interface skipping the authentication. -BROWSER="firefox --kiosk --profile $HOME/.mozilla/firefox/profile" /usr/libexec/cockpit-desktop /cockpit/@localhost/agama/index.html +TOKEN_FILE=/run/agama/token +TOKEN=$(cat $TOKEN_FILE) +PREFS=$HOME/.mozilla/firefox/profile/user.js + +sed -e "s/__HOMEPAGE__/http:\/\/localhost\/login?token=$TOKEN/" $PREFS.template > $PREFS +firefox --kiosk --profile $HOME/.mozilla/firefox/profile