:: [devuan-dev] bug#540: elogind unmou…
Inizio della pagina
Delete this message
Reply to this message
Autore: Frank
Data:  
To: Mark Hindley
CC: 540
Oggetto: [devuan-dev] bug#540: elogind unmounts /run/user/$UID tmpfs filesystem after logging in again
Adding "pam.setenv("XDG_SESSION_CLASS", "greeter");" to app.cpp (line
560) did not work for me, the environment variable is set, but the class
(according to cmd "loginctl session-status") is still "user". But,
adding "export XDG_SESSION_CLASS=greeter" to "/etc/init.d/slim" DID
work, class became "greeter". Even better. Nice and clean.

Mark Hindley schreef op 2021-01-20 18:11:
> On Wed, Jan 20, 2021 at 04:31:25PM +0100, Frank wrote:
>> Hi Mark,
>>
>> I played around with the slim PAM configuration and found a possible
>> solution: change the elogind class from "user" to "greeter". Slim does
>> not
>> fork a helper process so changing it makes sense to me. When a new
>> session
>> is created, previous sessions close in the background, even if the
>> logout/login cycle is rapid. Looks promising?
>
> Interesting. I am wondering (from a very quick read of the docs) if we
> can
> achieve the same by setting XDG_SESSION_CLASS within slim.
>
> Thanks.
>
> Mark