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

Re: best way to check for an active X session from a maintainer script?

On Tue September 11 2007 01:07:52 am Steve Langasek wrote:
> Does anyone know of a case where this would give the wrong result? 
> I'm not sure what an xdmcp login would look like here, for instance,
> or if startx creates a utmp entry that I should be concerned about
> registering as a false positive.

Running "who" from a `startx startkde' (issued on tty1) session,
also logged in via XDMCP from smokie,
and via KDM...

bsass@onegee:~$ who
bsass    tty1         Sep 11 03:05
bsass    smokie:0     Sep 11 03:14 (smokie)
bsass    :0           Sep 11 03:16

Reply to: