Handle Ctrl-C (SIGINT) once gracefully
Handle Ctrl-C when started in terminal outside Sailjail (invoker
eats signals for breakfast
-
❌ invoker --type=qt5 /usr/bin/harbour-whisperfish
-
✅ devel-su -p /usr/bin/harbour-whisperfish
-
✅ sudo -E -u defaultuser -g privileged harbour-whisperfish
-
✅ harbour-whisperfish
Catches SIGINT, and tries to close Whisperfish by making a DBus call. The second time it catches SIGINT, it just exits.
This is effectively for developers only, but every forceful exit is an unwanted one.
Fixes #425 (closed)