Zafran Elahi schrieb:
hi,
can any one guide me that how can i configure Session descriptor
with application launching option in kiosk mode.


That should be documented in the kiosk man pages, particularly the session.conf man page. Unfortunately I just recently noticed, that this documentation is incomplete.

To support an application launching option, you need to add a KIOSK_SESSION_APPLAUNCHER key to your session descriptor. The value of that key is the path to a launcher executable, which is responsible for configuring the session to launch an application in a specified way. Usually this is implemented as a script. This launcher script is invoked for every application list entry with 4 arguments, which are the components of the applist entry (as documented in the kiosk man page):

   arg1: exec|desc  - type indicator

   arg2: full path or short name of the application executable or
         descriptor (depending on type)

   arg3: auto|critical|user - start mode

   arg4: command line arguments to be passed to the application
         executable

For examples look at the 'applauncher' scripts that are available in the jds3 and cde sessions on Solaris (install pathes are /etc/opt/SUNWkio/sessions/<sessin>/applauncher).

The predefined Solaris scripts standardize on using application descriptors, so for 'exec' entries, they synthesize an application descriptor in the session HOME. Once you have an application descriptor, you can launch the associated application using the /opt/SUNWkio/lib/kioskapplaunch helper. That helper supports the -c option to launch a process as critical process.

You can also take the complementary approach and work with executable pathes directly, extracting the KIOSK_APP_EXEC value from the application descriptor for the application. To launch an executable as a critical process, use the /opt/SUNWkio/lib/kioskcrit helper.

For entries with start mode 'critical' or 'auto', the launcher can start the executable directly or arrange for entries to be started by a session manager (if available). For example the JDS and CDE applauncher scripts add these applications to a session or sessionetc file, so that they are launched by the session manager later on.

For entries with start mode user (and optionally for auto) the launcher needs to configure them as user-specific menu entries or other form of launcher (e.g. desktop icon). How this is done depends on your session and its configuration and user interfaces.

Disclaimer: Note that the mentioned helpers (and also the /opt/SUNWkio/lib/utils.sh script library) used by the predefined Solaris scripts are currently not documented interfaces of Kiosk Mode. While we plan to promote them to public and supported interfaces sometime in the future, they may undergo some changes by that time.

- Jörg


--
Joerg Barfurth           Phone: +49 40 23646662
Software Engineer        mailto:[EMAIL PROTECTED]
Desktop Technology
Thin Client Software     http://www.sun.com/software/sunray/
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: Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering

_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users

Reply via email to