Bug 393685

Summary: Feature Request: Please add option to stop activity when empty
Product: [Plasma] plasmashell Reporter: Victor <victorbrca>
Component: Activities in generalAssignee: Ivan Čukić <ivan.cukic>
Status: RESOLVED UNMAINTAINED    
Severity: wishlist CC: ivan.cukic, kde, kdedev, niccolo, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.27.0   
Target Milestone: 1.0   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Victor 2018-04-30 15:47:59 UTC
Note: This is feature request, but I could not find a whishlist for 'kactivitymanagerd'.

It would be great to be to able to automatically stop an activity when it's empty, or automatically start an activity when you open an application that has been assigned to that activity. I know this can be achieved via shell scripts (which is what I'm using right now), but it would be great to have this as an option for the activities settings. 

Note 2: You guys are doing a superb job!!
Comment 1 David Edmundson 2018-04-30 17:26:43 UTC
By empty you mean no application specific to that activity running?
Comment 2 Victor 2018-04-30 21:43:44 UTC
(In reply to David Edmundson from comment #1)
> By empty you mean no application specific to that activity running?

That's correct. If no windowed app is running on that specific activity, then it gets stopped. And if you open an application that is assigned to an activity that is currently not running, then the activity gets started automatically. 

I put this quick bash script to do just that - https://pastebin.com/1Jwn8Fqs
Comment 3 TraceyC 2025-01-27 18:20:57 UTC
This seems reasonable to consider. If it can be done with a bash script it shouldn't be terribly difficult to implement.
Comment 4 Niccolò Venerandi 2025-09-30 13:38:09 UTC
Activities cannot be stopped anymore, which makes this bug sadly no longer relevant.