From f7d5e8f722a8d33df033dc7812204f395d151977 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 13 Oct 2002 04:23:20 +0000 Subject: Add files for kiosk-mode web-browser. --- gdm/Sessions/Kiosk | 29 +++++++++++++++++++++++++++++ gdm/Sessions/SimpleKiosk | 11 +++++++++++ 2 files changed, 40 insertions(+) create mode 100755 gdm/Sessions/Kiosk create mode 100755 gdm/Sessions/SimpleKiosk (limited to 'gdm') diff --git a/gdm/Sessions/Kiosk b/gdm/Sessions/Kiosk new file mode 100755 index 0000000..662bc78 --- /dev/null +++ b/gdm/Sessions/Kiosk @@ -0,0 +1,29 @@ +#!/bin/sh +# +# /etc/gdm/Sessions/Kiosk +# Copyright 2002 Jonas Smedegaard +# +# $Id: Kiosk,v 1.1 2002-10-13 04:24:07 jonas Exp $ +# +# Run a guest web-only environment +# For kiosk use... +# +# Requirements: oroborus, light +# +# Limitations: +# * Cannot handle multiple logins to same account +# (a limitation of mozilla-based browsers) +# * This file must be copied to /etc/gdm/Sessions/Kiosk +# (symlinks are ignored by GDM) + +cp -f /etc/local-COMMON/X11/oroborus/kiosk.oroborusrc $HOME/.oroborusrc +/usr/bin/oroborus & + +mkdir -p $HOME/.light +cp -f /etc/local-COMMON/X11/light/prefs-kiosk.js $HOME/.light/prefs.js + +# run forever... +# (until GDM hopefully one day supports remote auto-login) +while true; do + /usr/bin/light http://kiosk/ +done diff --git a/gdm/Sessions/SimpleKiosk b/gdm/Sessions/SimpleKiosk new file mode 100755 index 0000000..688b863 --- /dev/null +++ b/gdm/Sessions/SimpleKiosk @@ -0,0 +1,11 @@ +#!/bin/sh +# +# /etc/gdm/Sessions/SimpleKiosk +# Copyright 2002 Jonas Smedegaard +# +# $Id: SimpleKiosk,v 1.1 2002-10-13 04:24:07 jonas Exp $ +# +# Run the web browser dillo as a barebones kiosk. +# Supports multiple logins to same account, + +exec /usr/bin/dillo http://kiosk/ -- cgit v1.2.3