Hi Greg,
Sorry for the late reply
Greg Rodenhiser schrieb:
Hello all, I'm having an impossible (and frustrating) time to configure
a Kiosk SunRay session. I want a basic console that runs Gnome and
firefox. I want both to launch upon startup (ie the session will be a
Gnome instance with a single firefox window open). I want both the
Gnome session and the firefox window to be critical (if the user closes
firefox or logs out of Gnome the session will restart. I've read
through the man pages and older entries on this mailing list but I'm
still missing something (the windows connector example doesn't help
either). I found an Kiosk session someone made and tried making my
changes from there. Here's what I have.
session.conf
KIOSK_SESSION_EXEC=/etc/opt/SUNWkio/sessions/hc/hc-kiosk
KIOSK_SESSION_LABEL="HC Kiosk Session"
KIOSK_SESSION_DESCRIPTION="Provides a blank X session for running a
Kiosk script."
KIOSK_SESSION_ARGS=/usr/bin/gnome-session
KIOSK_SESSION_PROTOTYPE=hc-kiosk
KIOSK_SESSION_APPLAUNCHER="/opt/SUNWkio/lib/kioskapplaunch"
Despite the similarities in names, "/opt/SUNWkio/lib/kioskapplaunch" is
not a suitable application launcher script.
An application launcher script must do the proper thing to launch an
application, if given the data from an application list entry.
Unfortunately the documentation for this in the man pages is not complete.
hc-kiosk:
#!/bin/sh
$*
With this script presence of the KIOSK_SESSION_APPLAUNCHER entry is
misleading: the session must itself make sure that an application list
is processed. You can use the processApplicationList function in
/opt/SUNWkio/lib/utils.sh for this purpose.
Look at the predefined 'JDS3' and 'CDE' sessions in the solaris packes
on your install media for examples how a session that can act as an
application container can be constructed.
Or just make a script that starts the browser as critical (see below)
and then runs or execs the gnome-session (as your script now does via
the arguments).
browser.conf:
KIOSK_APP_EXEC=/usr/bin/firefox
KIOSK_APP_ICON=/usr/share/pixmaps/firefox.png
KIOSK_APP_POST=
KIOSK_APP_PRE=
KIOSK_APP_PROTOTYPE=
If you have this, you can launch the browser as critical from your
script as follows:
/opt/SUNWut/lib/kioskapplaunch -c browser
(Maybe you need /path/to/browser.conf instead of 'browser', not sure atm)
HTH
- Jörg Barfurth
--
Joerg Barfurth Phone: +49 40 23646662
Software Engineer mailto:[EMAIL PROTECTED]
Desktop Technology
Sun Microsystems GmbH http://www.sun.com/software/javadesktopsystem/
Sitz der Gesellschaft:
Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users