gnome-settings-daemon r801 - trunk/plugins/xrandr



Author: federico
Date: Thu Mar 26 02:01:49 2009
New Revision: 801
URL: http://svn.gnome.org/viewvc/gnome-settings-daemon?rev=801&view=rev

Log:
Ahem, remove the known-bad configuration file

Signed-off-by: Federico Mena Quintero <federico novell com>

Modified:
   trunk/plugins/xrandr/gsd-xrandr-manager.c

Modified: trunk/plugins/xrandr/gsd-xrandr-manager.c
==============================================================================
--- trunk/plugins/xrandr/gsd-xrandr-manager.c	(original)
+++ trunk/plugins/xrandr/gsd-xrandr-manager.c	Thu Mar 26 02:01:49 2009
@@ -167,9 +167,12 @@
 
         /* ENOENT means the original file didn't exist.  That is *not* an error;
          * the backup was not created because there wasn't even an original
-         * monitors.xml (such as on a first-time login).
+         * monitors.xml (such as on a first-time login).  Note that *here* there
+         * is a "didn't work" monitors.xml, so we must delete that one.
          */
-        if (saved_errno != ENOENT) {
+        if (saved_errno == ENOENT)
+                unlink (intended_filename);
+        else {
                 char *msg;
 
                 msg = g_strdup_printf ("Could not rename %s to %s: %s",



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]