Skip to content

Commit

Permalink
Update the agama-live startup script
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed May 3, 2024
1 parent 2ab0d21 commit 8efa41f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
9 changes: 0 additions & 9 deletions live/root/.icewm/startup

This file was deleted.

10 changes: 8 additions & 2 deletions live/root/root/.icewm/startup
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8efa41f

Please sign in to comment.