[mutter] Exit, not abort, when we fail to initialize Clutter
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] Exit, not abort, when we fail to initialize Clutter
- Date: Fri, 6 Nov 2015 22:04:32 +0000 (UTC)
commit 3ec3cc248db95384ab8be89e90703908cf37717c
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Wed Oct 28 10:52:03 2015 -0400
Exit, not abort, when we fail to initialize Clutter
Failing to initialize Clutter isn't something it's useful to report
into automatic bug tracking systems or get a backtrace for - in fact,
the most common case is that DISPLAY is unset or points to a
non-existent X server. So simply exit rather than calling g_error().
https://bugzilla.gnome.org/show_bug.cgi?id=757311
src/backends/meta-backend.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/backends/meta-backend.c b/src/backends/meta-backend.c
index 4a88c89..79e5f2e 100644
--- a/src/backends/meta-backend.c
+++ b/src/backends/meta-backend.c
@@ -626,7 +626,10 @@ meta_clutter_init (void)
meta_create_backend ();
if (clutter_init (NULL, NULL) != CLUTTER_INIT_SUCCESS)
- g_error ("Unable to initialize Clutter.\n");
+ {
+ g_warning ("Unable to initialize Clutter.\n");
+ exit (1);
+ }
/*
* XXX: We cannot handle high dpi scaling yet, so fix the scale to 1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]