Browse Source

Merge pull request #62 from sebastiencs/master

Fix #60: Remove comment from theme string
sisyphus
Dustin Falgout 9 years ago committed by GitHub
parent
commit
2a5b403cea
  1. 9
      src/lightdm-webkit2-greeter.c

9
src/lightdm-webkit2-greeter.c

@ -250,6 +250,14 @@ quit_cb(void) {
gtk_main_quit();
}
static gchar *
remove_comments(gchar *str) {
gchar *ptr;
if (str && (ptr = strchr(str, '#')))
*ptr = 0;
return g_strstrip(str);
}
int
main(int argc, char **argv) {
@ -287,6 +295,7 @@ main(int argc, char **argv) {
G_KEY_FILE_NONE, NULL);
theme = g_key_file_get_string(keyfile, "greeter", "webkit-theme", NULL);
theme = remove_comments(theme);
config_timeout = g_key_file_get_integer(keyfile, "greeter", "screensaver-timeout", NULL);
debug_mode = g_key_file_get_boolean(keyfile, "greeter", "debug_mode", NULL);

Loading…
Cancel
Save