[ConsoleKit] consolekit userid session counters

Kay Sievers kay.sievers at vrfy.org
Wed Feb 24 08:52:11 PST 2010


On Wed, Feb 24, 2010 at 03:53, Martin Vogt
<martin.vogt at itwm.fraunhofer.de> wrote:
> is there a mechanism in consolekit which counts the number
> of session for a user?
>
> I like to run an action if the "user_sessioncounter" reaches zero.

> But if the users login twice and then logouts
> from one session all the permissions are revoked. :(
>
> An environment variable like
>
> ${CK_SESSION_COUNTER_FOR_USER_UID}
>
> would be helpful here.
>
> Is there such a mechanism?

You can read the database, it's an ini-file, and it is dumped before
the script is called.

Kay


More information about the ConsoleKit mailing list