reassign 627311 accountsservice
tag 627311 + patch
thanks

Le jeudi 19 mai 2011 à 14:44 +0100, Chris a écrit : 
> When trying to activate automatic login from the User Accounts menu, the 
> option
> initialy activates but when you go back to All Settings then check again its
> disabled. This error appears in the command line output:
> (gnome-control-center:6064): user-accounts-cc-panel-WARNING **:
> SetAutomaticLogin call failed: failed to change automatic login: No such file
> or directory

Thanks for your report. This is actually a bug in accountsservice, which
relies on a fixed path to the GDM configuration file. In Debian, it
is /etc/gdm3/daemon.conf while /etc/gdm/custom.conf is hardcoded.

Here is a trivial fix. Ideally it should be customizable by a configure
option, just like it is for gdm.

Cheers,
-- 
.''`.      Josselin Mouette
: :' :
`. `'
  `-
From 639854690aa65031a072b8a362b609338955933b Mon Sep 17 00:00:00 2001
From: Josselin Mouette <[email protected]>
Date: Thu, 19 May 2011 20:04:36 +0200
Subject: [PATCH] Fix path to the GDM configuration file, which is different
 in Debian.

---
 src/daemon.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/daemon.c b/src/daemon.c
index a463c46..3b02b63 100644
--- a/src/daemon.c
+++ b/src/daemon.c
@@ -607,7 +607,7 @@ reload_autologin_timeout (Daemon *daemon)
         daemon->priv->autologin_id = 0;
 
         if (!load_autologin (daemon, &name, &enabled, &error)) {
-                g_debug ("failed to load gdms custom.conf: %s", error->message);
+                g_debug ("failed to load gdms daemon.conf: %s", error->message);
                 g_error_free (error);
                 g_free (name);
 
@@ -1352,7 +1352,7 @@ load_autologin (Daemon      *daemon,
         GError *local_error;
         gchar *string;
 
-        filename = "/etc/gdm/custom.conf";
+        filename = "/etc/gdm3/daemon.conf";
 
         keyfile = g_key_file_new ();
         if (!g_key_file_load_from_file (keyfile,
@@ -1402,7 +1402,7 @@ save_autologin (Daemon      *daemon,
         gchar *data;
         gboolean result;
 
-        filename = "/etc/gdm/custom.conf";
+        filename = "/etc/gdm3/daemon.conf";
 
         keyfile = g_key_file_new ();
         if (!g_key_file_load_from_file (keyfile,
-- 
1.7.5.1

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to