Fwd: ConsoleKit session types

William Jon McCann mccann at jhu.edu
Wed Dec 19 17:46:34 PST 2007


Resending this since for some reason I don't think it made it to the
list.  I don't see it in the archives.


---------- Forwarded message ----------
From: William Jon McCann <mccann at jhu.edu>
Date: Oct 31, 2007 11:20 AM
Subject: ConsoleKit session types
To: HAL Development List <hal at lists.freedesktop.org>


Hi,

In ConsoleKit we have the provision for sessions to have types.
http://people.freedesktop.org/~mccann/doc/ConsoleKit/ConsoleKit.html#Session.GetSessionType

However, we haven't been using it in part because we didn't have a
solid use case at the time.

In the new GDM (2.21.x) we create a session for the greeter to run in.
 However, it might make sense to distinguish this type of session
(somehow) from the typical user login session.  This would allow one
to filter the output of ck-list-sessions or ck-history by session type
so the output would be limited to "real" user login session.  Or
alternately, one could specifically find out where greeter sessions
are running...

Does it make sense to use a different session-type for this?

Thinking a bit bigger perhaps a system launcher daemon may be able to
use these session types too?  For example, launchd [1] can has support
for a few session types [2]:
Aqua, LoginWindow, Background, StandardIO and System

But I haven't found anything that documents exactly what each of those mean.

It appears that an older version of launchd supported:
Aqua, tty or X11

Thoughts?

Jon


[1]  http://launchd.macosforge.org/
[2] http://svn.macosforge.org/repository/launchd/trunk/launchd/src/libvproc_private.h
http://svn.macosforge.org/repository/launchd/trunk/launchd/src/launchctl.1


More information about the hal mailing list