Re: Closing XTerm causes the GTK app to exit, inspite of disown/nohup on its PID - why?

2019-03-06 Thread Veek M via gtk-list
thank you, SIGINT was the culprit. trap "echo HUP>>/tmp/err" SIGHUP trap "echo QUIT>>/tmp/err" SIGQUIT trap "echo INT>>/tmp/err" SIGINT trap "echo TERM >>/tmp/err" SIGTERM revealed all ___ gtk-list mailing list gtk-list@gnome.org

Re: Closing XTerm causes the GTK app to exit, inspite of disown/nohup on its PID - why?

2019-03-05 Thread James Cameron
Wild guess; use strace to look for a signal at the time the window is closed, and add code to replace the handler for the signal. For instance, to handle Ctrl+C gracefully in Python that uses GTK, some of my code does this; GLib.unix_signal_add(GLib.PRIORITY_DEFAULT, signal.SIGINT, callback) --

Closing XTerm causes the GTK app to exit, inspite of disown/nohup on its PID - why?

2019-03-05 Thread Veek M via gtk-list
https://www.reddit.com/r/bash/comments/axi4n6/closing_xterm_causes_the_app_to_exit_inspite_of/ Adding nohup works but ONLY for xclock xfontsel xpdf - hexchat and firefox exit when the terminal exits - basically GTK apps. Script creates a named-pipe .Xauthority to pass MIT-MAGIC-cookie data to a