Hi there, Sorry - I have now copied my original reply to the list - I have no interest in being secretive, I simply thought I'd pressed reply-to-all!
bash-2.05b$ ls -la wtmp* -rw-rw-r-- 1 root utmp 768 2003-04-02 11:31 wtmp -rw-rw-r-- 1 root utmp 147072 2003-03-27 09:33 wtmp.1 That's my /var/log/wtmp* listing, so yes, they are preserved OK it seems. But yes, as I said, if there are multiple X servers active, I'm unsure as to how you can tell which one is currently being displayed on the screen. You could do something like either: a) Display a copy for ALL users with X logins b) Display a copy for one user, whichever screen he's using. How do those options sound to you? David ou who's logged in... > > > > bash-2.05b$ who > > dmp :0 Mar 23 18:35 > > uhm, right. Can you check if your /var/log/wtmp.1 is youger than 'Mar 23 > 18:35'. I don't know if valid wtmp entries are preseved when wtmp is > rotated. Here my 'who' entry and /var/tmp/wtmp.1 have the same timestamp. > > > and the display/terminal is the middle column. However, I'm not sure how > > you can find out which one is currently being displayed. > > > > Perhaps you could annoy ALL the users by running multiple copies of the > > program (1 for each user, with display set appropriately) so a copy will > > appear on each X display... > > I hope there's a better solution ;) > > Achim > > > David > > > > On Wednesday 02 April 2003 19:12, Achim Bohnet wrote: > > > 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. > > > -- [EMAIL PROTECTED]