[Xfce4-commits] <xfce4-screenshooter:master> Fix writing to the RC file (Mike Massonnet).

Jérôme Guelfucci noreply at xfce.org
Thu Nov 12 15:44:06 CET 2009


Updating branch refs/heads/master
         to c2b5fee4eab165e43d3ac552ea876a8e6b5142fd (commit)
       from 178a91674b8a39ece9e543511fa52e85502715e7 (commit)

commit c2b5fee4eab165e43d3ac552ea876a8e6b5142fd
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date:   Thu Nov 12 14:57:11 2009 +0100

    Fix writing to the RC file (Mike Massonnet).
    
    This should fix saving of preferences when the rc file does not exist
    yet. Note: always test things with a clean configuration...

 lib/screenshooter-utils.c |    1 -
 src/main.c                |    2 +-
 2 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/lib/screenshooter-utils.c b/lib/screenshooter-utils.c
index 477596f..9305718 100644
--- a/lib/screenshooter-utils.c
+++ b/lib/screenshooter-utils.c
@@ -145,7 +145,6 @@ screenshooter_write_rc_file (const gchar *file, ScreenshotData *sd)
   xfce_rc_write_entry (rc, "last_user", sd->last_user);
 
   TRACE ("Flush and close the rc file");
-  xfce_rc_flush (rc);
   xfce_rc_close (rc);
 }
 
diff --git a/src/main.c b/src/main.c
index 0df1f9e..d24b347 100644
--- a/src/main.c
+++ b/src/main.c
@@ -208,7 +208,7 @@ int main (int argc, char **argv)
     g_thread_init (NULL);
 
   /* Read the preferences */
-  rc_file = xfce_resource_lookup (XFCE_RESOURCE_CONFIG, "xfce4/xfce4-screenshooter");
+  rc_file = xfce_resource_save_location (XFCE_RESOURCE_CONFIG, "xfce4/xfce4-screenshooter", TRUE);
   screenshooter_read_rc_file (rc_file, sd);
 
   /* Default to no action specified */



More information about the Xfce4-commits mailing list