Bug 380335 - Problems closing activities when applications ask for confirmation before closing
Summary: Problems closing activities when applications ask for confirmation before clo...
Status: REPORTED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Activities in general (show other bugs)
Version: 5.27.0
Platform: Neon Linux
: NOR normal
Target Milestone: 1.0
Assignee: Ivan Čukić
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-29 23:25 UTC by Louis Moureaux
Modified: 2024-12-17 21:42 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Louis Moureaux 2017-05-29 23:25:18 UTC
Let's say you have an activity with some file open in Kate. When closing it while a document isn't saved to disk, Kate will ask for confirmation (do you want to save your changes before closing? dialog). The confirmation dialog prevents the activity from closing, which is fine. 

However, the activity manager seems to think the activity was closed correctly:
* The current activity gets changed
* When switching back to the activity, all open applications are started a second time

The Plasma UI displays the "half-closed" activity as running.

Notice that in the confirmation dialog, the user can choose *not to* close Kate. I don't know how activities could behave in this case.
Comment 1 Justin Zobel 2022-11-06 09:24:47 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 2 Louis Moureaux 2022-11-16 14:17:21 UTC
Even though the behavior has changed, this is still not handled correctly. Nowadays, the confirmation dialog isn't shown to the user and the app (Kate in the original example) asking for confirmation keeps running. I expect to see the confirmation dialog and only stop the activity if I confirm.

I suspect the running app will be killed on logout and the unsaved data will be lost, but I didn't dare to try.