diff options
Diffstat (limited to '')
-rwxr-xr-x | src/blueshift-tray.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/blueshift-tray.py b/src/blueshift-tray.py index cb5118e..fbc9abb 100755 --- a/src/blueshift-tray.py +++ b/src/blueshift-tray.py @@ -157,6 +157,10 @@ signal.signal(signal.SIGCHLD, process_quit) process = subprocess.Popen(['blueshift'] + sys.argv[1:], stdout = sys.stdout, stderr = sys.stderr) last_time = time.time() - 1 +signal_relay = lambda signo, _frame : os.kill(process.pid, signal) +for signo in (signal.SIGTERM, signal.SIGINT, signal.SIGHUP, signal.SIGUSR1, signal.SIGUSR2): + signal.signal(signo, signal_relay) + try: icon = gtk.StatusIcon() |