summaryrefslogtreecommitdiff
path: root/gdm/Sessions/Kiosk
blob: f0d25e009c3dcfff2402441abf8d7ef8a3b509dd (plain)
  1. #!/bin/sh
  2. #
  3. # /etc/gdm/Sessions/Kiosk
  4. # Copyright 2002-2003 Jonas Smedegaard <dr@jones.dk>
  5. #
  6. # $Id: Kiosk,v 1.3 2003-01-24 00:07:06 jonas Exp $
  7. #
  8. # Run a guest web-only environment
  9. # For kiosk use...
  10. #
  11. # Requirements: oroborus, light
  12. #
  13. # Limitations:
  14. # * Cannot handle multiple logins to same account
  15. # (a limitation of mozilla-based browsers)
  16. # * This file must be copied to /etc/gdm/Sessions/Kiosk
  17. # (symlinks are ignored by GDM)
  18. cp -f /etc/local-COMMON/X11/oroborus/kiosk.oroborusrc $HOME/.oroborusrc
  19. /usr/bin/oroborus &
  20. mkdir -p $HOME/.light
  21. cp -f /etc/local-COMMON/X11/light/prefs-kiosk.js $HOME/.light/prefs.js
  22. if [ -x /usr/bin/xscreensaver ]; then
  23. /usr/bin/xscreensaver-command -exit
  24. /usr/bin/xscreensaver -no-capture-stderr -no-splash &
  25. fi
  26. # run forever...
  27. # (until GDM hopefully one day supports remote auto-login)
  28. while true; do
  29. /usr/bin/light http://kiosk/
  30. done