Antergos / web-greeter

A modern, visually appealing greeter for LightDM.
http://antergos.github.io/web-greeter
GNU General Public License v3.0
233 stars 57 forks source link

greeter_config.branding returns different values than greeter_config.get_str(...) #143

Closed barskern closed 6 years ago

barskern commented 6 years ago

As mentionned in the title, when I call greeter_config.branding I always get the default object, hence the object that is coded in GreeterConfig.js. However when i use greeter_config.get_str("branding", "background_images"), I get the correct value defined in lightdm-webkit2-greeter.conf. Despite that greeter_config.branding does not work, when I use greeter_config.greeter I get access to the settings under the [greeter]-section in the lightdm-webkit2-greeter.conf.

These problems leads me to conclude that there must be an error when the lightdm-webkit2-greeter.conf file is read. I think its particularly strange that greeter_config.greeter is initialized correctly, but greeter_config.branding is not.

To replicate these issuses, add the following lines in a webkit2-theme and run it in debug-mode in the way specified in the README.md. Further you have to change the value of background under the [branding] section inside your lightdm-webkit2-greeter.conf to a random value, so that it is not the default /usr/share/backgrounds.

window.console.log(JSON.stringify(greeter_config.greeter));
window.console.log(JSON.stringify(greeter_config.branding));
window.console.log(greeter_config.get_str("branding", "background_images"));
lots0logs commented 6 years ago

This is fixed on master. The fix will be part of the 3.0 release.