From ff57ed5d6a67f91ef35ae947f3fea7ecce12ee7b Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Mon, 11 Apr 2011 03:30:24 -0400 Subject: [PATCH] GApplication: g_settings_sync() on exit Call g_settings_sync() just before g_applcation_run() returns. This is really the correct thing to do in every case that you're using GSettings and it prevents every single application from having to do it for themselves. Closes bug #647419. --- gio/gapplication.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gio/gapplication.c b/gio/gapplication.c index c37c3db65..ee6cbe9c4 100644 --- a/gio/gapplication.c +++ b/gio/gapplication.c @@ -1329,6 +1329,8 @@ g_application_run (GApplication *application, if (application->priv->impl) g_application_impl_flush (application->priv->impl); + g_settings_sync (); + return status; }