Bug 454568 - Activity suspension silently fails when application requires user intervention to quit
Summary: Activity suspension silently fails when application requires user interventio...
Status: RESOLVED UNMAINTAINED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Activities in general (other bugs)
Version First Reported In: 5.27.0
Platform: Other Other
: NOR normal
Target Milestone: 1.0
Assignee: Ivan Čukić
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-29 12:23 UTC by Kishore Gopalakrishnan
Modified: 2025-05-16 14:05 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.5.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kishore Gopalakrishnan 2022-05-29 12:23:27 UTC
SUMMARY
If the user tries to suspend an activity and an application in that activity requires user intervention before quitting (e.g. there is an unsaved file), the activity suspension appears to succeed (according to the state displayed in the switcher), but the programs in that activity still remain open in the background.

STEPS TO REPRODUCE
1. Open a text file in Kate
2. Edit the text file, but don't save
3. Switch to another activity
4. From the activity sidebar, suspend the activity Kate was in

OBSERVED RESULTS
The activity disappears from switcher but it is still running in background. This can be confirmed by looking at the list of applications in the system monitor

EXPECTED RESULTS
If an application requires user intervention before quitting, the user should be taken to that window and then the activity should be properly suspended.

SOFTWARE VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.24.90
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.4
Kernel Version: 5.15.43-1-lts (64-bit)
Graphics Platform: X11
Processors: 4 × AMD EPYC-Rome Processor
Memory: 1.4 GiB of RAM
Graphics Processor: virgl
Manufacturer: QEMU
Product Name: Standard PC (Q35 + ICH9, 2009)
System Version: pc-q35-5.1

ADDITIONAL INFORMATION
Also reproducible on Plasma 5.24.5
Comment 1 Nate Graham 2025-05-14 18:22:49 UTC
We've removed the functionality to suspend activities in Plasma 6.4, so this issue won't be possible to encounter anymore.
Comment 2 Kishore Gopalakrishnan 2025-05-16 04:32:02 UTC
(In reply to Nate Graham from comment #1)
> We've removed the functionality to suspend activities in Plasma 6.4, so this
> issue won't be possible to encounter anymore.

Strangely, I am still able to suspend and resume activities in the 6.4 beta. Was the functionality removed after the beta tagging? While I don't know about the reasons for removing this feature, it would've been nice if it had been removed in a beta version first (i.e. waiting for the next release cycle if necessary to allow for feedback from users).

Activity suspension/resumption seems to work fine for me on Arch Linux (with Plasma 6.3.90) and on KDE Neon unstable (updated today; kinfocenter mentions the version as 6.3.80). I also couldn't find anything related to this in the changelog for 6.3.90 (6.4 beta): https://kde.org/announcements/plasma/6/6.3.90 .
Comment 3 Nate Graham 2025-05-16 14:05:28 UTC
Ah, I see the patch to do this didn't manage to land in time for Plasma 6.4: https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/5431

It'll be in 6.5 though.