qterminal
qterminal copied to clipboard
Extended close confirmation
Hi! Please extend close confirmation:
Ask confirmation when closing:
- never
- always
- if process is running in terminal
A confirmation should only ever happen if a process is running, so the config item is unnecessary. Is it possible to do?
This is related to #144.
Not really.
I referred to my comment:
Is there a way to figure if there is a running foreground-process in a tab? We could add an additional confirmation dialog if there is an active process.
If we have a way to figure out if there is a running process, we can create a confirmation dialog that can be used for both issues.
this is the problem - how to get running process info for various platforms...
this is the problem - how to get running process info for various platforms...
Sakura has a reliable implementation that works on Linux and FreeBSD.
Also #509 is related. Maybe exit warning option could be made into a checklist:
Warn on exit when:
[ ] child process(es) running
[ ] multiple tabs open
[ ] always
Is 'always' option really needed?
And also the prompt do not show when closing the tabs, the prompt is rised only for the first tab or main window.
I don't use close prompt but if it's useful, it should be shown:
- When closing the main window; and
- When closing a tab; and
- When collapsing sub-terminals.
However, this report is about showing the prompt when a process is running.
I have some free time now, let me try to do it
I don't use close prompt but if it's useful, it should be shown:
- When closing the main window; and
- When closing a tab; and
- When collapsing sub-terminals.
However, this report is about showing the prompt when a process is running.
I have change the behavior form so the askOnExit is more configurable but not sure how to check out that a process is running or not. I guess it needs that a qtermwidget issue must be resolved to achievement the goal.