Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle SIGTERM signal #222

Closed
maximbaz opened this issue Jan 13, 2021 · 1 comment
Closed

Handle SIGTERM signal #222

maximbaz opened this issue Jan 13, 2021 · 1 comment

Comments

@maximbaz
Copy link

Hello 👋

Can't thank you enough for this awesome app!

Just one small feature request: it would be nice to properly handle SIGTERM signal and just do exactly what the app does when you press Ctrl+Q. SIGTERM is a standard signal which should tell the app that it needs to shutdown normally.

I want to have a simple key shortcut that toggles Qalculate, the easiest way to do it is to bind a key to pkill qalculate-gtk || qalculate-gtk, which tries to close Qalculate by sending SIGTERM signal, and if it couldn't close it, then it opens it instead.

What happens right now is that window gets closed, but state is not being saved: history will not be saved, changed settings, changed mode, etc.

Thanks 🙂

hanna-kn added a commit that referenced this issue Jan 14, 2021
@hanna-kn
Copy link
Contributor

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants