Zenity --notify (or better --trayicon Bug #884011) may just always listen on stdin, and provide an --exit-on-click option enable user feedback.
This would remove the asumption that --listen means to continusly listening to commands on stdin. It would provide the calling script with a feedback upon user action (zenity exits), while being able to modify the status.
Ideally, zenity could also accept an "exit" or "quit" command on stdin, in addition to Ctrl-C or closing the file descriptor.
Zenity --notify (or better --trayicon Bug #884011) may just always listen on stdin, and provide an --exit-on-click option enable user feedback.
This would remove the asumption that --listen means to continusly listening to commands on stdin. It would provide the calling script with a feedback upon user action (zenity exits), while being able to modify the status.
Ideally, zenity could also accept an "exit" or "quit" command on stdin, in addition to Ctrl-C or closing the file descriptor.