aboutsummaryrefslogtreecommitdiffstats
path: root/testing/gnome-session/fail-whale-dialog.patch
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2017-06-07 05:48:32 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2017-06-07 05:49:20 +0000
commit0f1ad5e2402fc1e2ae69f8cfc01386e836297714 (patch)
tree67980acc31a19350b8c3fcfdb00a6163e284fbf4 /testing/gnome-session/fail-whale-dialog.patch
parent1b11055c54a9100f6c62d38cbca4fa2d3f74e1b1 (diff)
downloadaports-0f1ad5e2402fc1e2ae69f8cfc01386e836297714.tar.bz2
aports-0f1ad5e2402fc1e2ae69f8cfc01386e836297714.tar.xz
testing/gnome-session: new aport
Diffstat (limited to 'testing/gnome-session/fail-whale-dialog.patch')
-rw-r--r--testing/gnome-session/fail-whale-dialog.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/testing/gnome-session/fail-whale-dialog.patch b/testing/gnome-session/fail-whale-dialog.patch
new file mode 100644
index 0000000000..e7a54f57f0
--- /dev/null
+++ b/testing/gnome-session/fail-whale-dialog.patch
@@ -0,0 +1,35 @@
+$OpenBSD: patch-gnome-session_gsm-fail-whale-dialog_c,v 1.1 2017/05/30 18:14:03 ajacoutot Exp $
+
+https://bugzilla.gnome.org/show_bug.cgi?id=775463
+
+Index: gnome-session/gsm-fail-whale-dialog.c
+--- a/gnome-session/gsm-fail-whale-dialog.c.orig
++++ b/gnome-session/gsm-fail-whale-dialog.c
+@@ -371,13 +371,20 @@ int main (int argc, char *argv[])
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+ textdomain (GETTEXT_PACKAGE);
+
+- gtk_init_with_args (&argc, &argv, " - fail whale",
+- entries, GETTEXT_PACKAGE,
+- &error);
+- if (error != NULL) {
+- g_warning ("%s", error->message);
+- exit (1);
+- }
++ if (!gtk_init_with_args (&argc, &argv, " - fail whale",
++ entries, GETTEXT_PACKAGE,
++ &error)) {
++ if (error != NULL) {
++ g_warning ("%s", error->message);
++ exit (1);
++ }
++
++ /* display server probably went away. Could be for legitimate reasons, could be for
++ * unexpected reasons. If it went away unexpectantly, that's logged elsewhere, so
++ * let's not add noise by logging here.
++ */
++ return 0;
++ }
+
+ fail_dialog = g_object_new (GSM_TYPE_FAIL_WHALE_DIALOG, NULL);
+ fail_dialog->priv->debug_mode = debug_mode;