summaryrefslogtreecommitdiff
path: root/debian/patches/01_dont_quit_zenity_when_stdin_ends.patch
blob: 1a754d1b6ebe6d30af2bb23fe61a4f0386c2e31e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From fc381b5938f7235401286d4821f03d2b05d4876a Mon Sep 17 00:00:00 2001
From: Emilio Pozuelo Monfort <pochu27@gmail.com>
Date: Sat, 27 Feb 2010 15:32:23 +0100
Subject: [PATCH] Don't quit zenity when the input stream is closed

When using --listen for a notification, zenity quits when the stream
ends. This makes it impossible to read commands from a pipe as in
`echo icon:info | zenity --notification --listen'.

https://bugzilla.gnome.org/show_bug.cgi?id=525596
---
 src/notification.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

Index: zenity-3.8.0/src/notification.c
===================================================================
--- zenity-3.8.0.orig/src/notification.c	2013-05-25 23:51:03.085727542 +0200
+++ zenity-3.8.0/src/notification.c	2013-05-25 23:51:03.077727349 +0200
@@ -291,8 +291,6 @@
 
   if ((condition & G_IO_HUP) != 0) {
     g_io_channel_shutdown (channel, TRUE, NULL);
-    zen_data->exit_code = zenity_util_return_exit_code (ZENITY_OK);
-    gtk_main_quit ();
     return FALSE;
   }
 
bgstack15