1wilkens / rdm

A toy display manager written in Rust. Inspired by Slim it aims to provide a simple and elegant login screen.
MIT License
56 stars 2 forks source link

xauth file / .Xauthority #2

Open 1wilkens opened 7 years ago

1wilkens commented 7 years ago

Currently an xauth file is generated and written to disk but not used when launching X, because the concept of .Xauthority is not quite clear. Adding the flag to the launch prevents gtk from opening the display. This is weird because the main ui (via gtk) will always be executed as root and as such should have access to X under all circumstances.

Also it is just not clear what .Xauthority actually does. In theory it should limit access to the X server but the auth file via startx actually contains multiple magic cookies while .Xauthority only contains 1.

More research is required to figure out what the "best practices" are. Although this is an enhancement it is the de-facto standard in all other display managers so it is a blocker for v0.1