[Pkg-lxde-maintainers] Bug#810632: save configuration creates new file! please Follow symlink
PICCORO McKAY Lenz
mckaygerhard at gmail.com
Sun Jan 10 19:55:38 UTC 2016
Package: lxdm
Version: 0.5.3-1
Severity: important
Tags: patch
if the gui configurator its invoked, creates a new file in
/var/lib/lxdm/lxdm.conf, event uses the
debian defined and provided!
Its important due confuses both admins and users, also those that uses
for derivatives!
Debian defines in rules at build time config file as
"/etc/lxdm/default.conf" as a link from lxde.conf in same place, but
does not uses none of!
upstream has a report with patch available
https://sourceforge.net/p/lxde/bugs/223/
Index: lxdm/src/greeter.c
===================================================================
--- lxdm.orig/src/greeter.c 2010-04-13 00:37:34.000000000 +0200
+++ lxdm/src/greeter.c 2010-04-13 00:48:35.000000000 +0200
@@ -781,8 +781,21 @@
if( config_changed )
{
gsize len;
+ gchar* config_file;
+ GError **error;
+
char* data = g_key_file_to_data(var_config, &len, NULL);
- g_file_set_contents(VCONFIG_FILE, data, len, NULL);
+ if( g_file_test(VCONFIG_FILE, G_FILE_TEST_IS_SYMLINK) )
+ {
+ config_file = g_file_read_link(VCONFIG_FILE, error);
+ g_file_set_contents(config_file, data, len, NULL);
+ g_free(config_file);
+
+ }
+ else
+ {
+ g_file_set_contents(VCONFIG_FILE, data, len, NULL);
+ }
g_free(data);
}
g_key_file_free(config);
--
Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com
More information about the Pkg-lxde-maintainers
mailing list