canonical / lightdm

Display Manager
GNU General Public License v3.0
840 stars 138 forks source link

Make .dmrc follow XDG base directory specification #59

Open TLATER opened 5 years ago

TLATER commented 5 years ago

One of my personal pet peeves is applications cluttering my home directory - every once in a while I try uncluttering it to see just how far I can get.

This time .dmrc is on my hit list. Could it be read from ${XDG_CONFIG_HOME:-$HOME/.config}/lightdm/dmrc, following the XDG base directory specification, or at least be configurable in some way?

mlindner commented 5 years ago

Additionally the /etc/lightdm/Xession hardcodes to look in $HOME instead of $HOME/.config.

MHellmund commented 5 years ago

Please make it configurable via lightdm.conf, allowing the variables $HOME and $USER. So everybody can choose:

$HOME/.dmrc
# present default

$HOME/.config/dmrc
# don't clutter my top level home

/notencrypted/$USER/.dmrc
# a possibility for users with encrypted homes_

None
# use AccountsService only

and perhaps even:

+/path/to/a/script
# this script interacts with, e.g. LDAP. It is called either with one argument 'user' and returns 'session' or it is called with two arguments 'user' and 'session' and stores this info

Tvrt1e commented 8 months ago

Not sure if this is the right place to ask, but is there a solution to this? I thought maybe moving .dmrc and chaning sessions-directory in lightdm.conf to the new path, but I can't find any documentation about .dmrc or the sessions-directory option.