O que é o XDG_SESSION_COOKIE, quem o utiliza e é útil para o login remoto do ssh controlar a sessão x local?

3

Está relacionado ao DISPLAY? e útil para acessar remotamente um servidor x para controlar a exibição local?

    
por NathaneilCapital 05.02.2014 / 20:23

1 resposta

0

curto: não exatamente

long: esta é uma variável de ambiente que pode ser definida para ConsoleKit . De acordo com sua documentação,

ConsoleKit is a framework for keeping track of the various users, sessions, and seats present on a system. It provides a mechanism for software to react to changes of any of these items or of any of the metadata associated with them.

e continua dizendo

A session is a collection of all processes that share knowledge of a secret. In the typical (or ideal) case, these processes all originate from a single common ancestor.

As an implementation detail, for now, this secret should be stored in the process environment by the session leader under the name XDG_SESSION_COOKIE. When and if we are able to take advantage of a mechanism in the underlying system to store session registration information - we will. However, such a mechanism is not known at the present time.

Lembrando que a pergunta foi feita no início de 2014, a página do ConsoleKit diz (última atualização em setembro de 2013)

ConsoleKit is a framework for defining and tracking users, login sessions, and seats.

ConsoleKit is currently not actively maintained. The focus has shifted to the built-in seat/user/session management of Software/systemd called systemd-logind!

Por sua vez, systemd-logind diz

systemd-logind is a system service that manages user logins.

Não está relacionado a DISPLAY , mas sim a autenticação necessária para se conectar a um determinado servidor X.

Leitura adicional:

por 28.10.2016 / 00:17

Tags