[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

which display is active and which user is logged in? (kdm?)



Hi,

I would like to startup digikam, when the camera is plugged in.
libgphoto2 comes with the example usbcam.x11-app hotplug script,
but it has two limitations:

	o fixed user
	o fixed display  (new complication du to the great 'New Session' feature)

'last' is one way to find out who's logged in (when one turns of monthly log rotation).
I've found no info or command that tells me the active virtual console or display.
I checked kdms files but only found  /var/lib/kdm/A{display}-randomString with
(with the cookies I guess).

Is there a kdm setting to turn on to find out what display is the active one
and if/what user is logged in there?   Other ways to get this info?

Achim
-- 
  To me vi is Zen.  To use vi is to practice zen. Every command is
  a koan. Profound to the user, unintelligible to the uninitiated.
  You discover truth everytime you use it.
                                      -- reddy@lion.austin.ibm.com



Reply to: