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

Question: safe shutdown of applications with close confirmation dialog #78

Open
matejdro opened this issue Dec 28, 2024 · 1 comment
Open

Comments

@matejdro
Copy link

matejdro commented Dec 28, 2024

Hello,

This is not really an issue, just a question:

UWSM says to have safe shutdown capabilities. Does this also include not shutting down / stopping the shutdown process if an application does not stop within X seconds?

Use case for that would be programs that do not want to close because they want user to confirm the closing (for example via "Do you want to exit without saving?" dialog).

If not, how would one achieve this properly? At the moment, I have a hacky script to do this, but I'm looking into doing this the proper way.

@matejdro matejdro changed the title Question: safe shutdown of applicatoins with close confirmation dialog Question: safe shutdown of applications with close confirmation dialog Dec 28, 2024
@Vladimir-csp
Copy link
Owner

UWSM says to have safe shutdown capabilities.

Not safe but clean. That is, ordered termination via unit deactivation.

There is systemd-inhibit for preventing actions such as shutdown, but there is nothing on UWSM's side (yet) to handle messaging/querying. Maybe I'll add at least some form of notification.

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