[gnome-settings-daemon] common: Report errors on startup in the helper skeleton



commit f5ef6bd9d1166a9457304409f58b6f0d2ba15cd4
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Sep 27 17:21:39 2016 +0200

    common: Report errors on startup in the helper skeleton
    
    https://bugzilla.gnome.org/show_bug.cgi?id=772370

 plugins/common/daemon-skeleton.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/plugins/common/daemon-skeleton.h b/plugins/common/daemon-skeleton.h
index 9b14268..449368a 100644
--- a/plugins/common/daemon-skeleton.h
+++ b/plugins/common/daemon-skeleton.h
@@ -62,7 +62,11 @@ main (int argc, char **argv)
         manager = NEW ();
 
         error = NULL;
-        START (manager, &error);
+        if (!START (manager, &error)) {
+                fprintf (stderr, "Failed to start: %s\n", error->message);
+                g_error_free (error);
+                exit (1);
+        }
 
         gtk_main ();
 


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