prikhi / lightdm-mini-greeter

A Minimal, Configurable, Single-User GTK3 LightDM Greeter
GNU General Public License v3.0
541 stars 48 forks source link

Add user config file to overwrite values in default #43

Closed shreve closed 3 years ago

shreve commented 5 years ago

Addresses #18

The majority of this PR transforms the config code into conditional assignment methods, which will only set a value if it actually read one. This allows us to check either config file for a value, then set fallback values at the end.

This will now try to read any config values from the old location in /etc/lightdm as well as /home/$login_user/.config/.

chrishoage commented 4 years ago

Would be very cool to see this merged in, it would be perfect to allow pywal themes to be applied to the greeter.

I tried to build this however, and could not get the config from my .config directory to be read. Perhaps I was holding it wrong?

Side note: I wonder if this should check XDG_CONFIG_HOME too?

prikhi commented 3 years ago

You can symlink the config file to your home directory instead, see: https://github.com/prikhi/lightdm-mini-greeter#config-file-in-home