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

Re: Finding the owner of a session



On Sunday 14 December 2003 00:26, Don Rozenberg wrote:
> I am running KDE under Knoppix 3.3.  I am writing a script that will be
> run when a digital camera is attached via USB.
>
> I would like to find a way of determing the userid of the person who
> logged in and started the KDE session.  One script, usb-mount, looks at
> /dev/console and gets root as the answer.  Is there a better way to
> determine the userid.

Depending on what you want to do DCOP might be of help
dcop --all-users will invoke the command on all KDE sessions running on this 
machine.

Cheers,
Kevin

Attachment: pgpquKF7HwkEI.pgp
Description: signature


Reply to: