Bug 393603 - Add option to execute a user command before switching to an activity
Summary: Add option to execute a user command before switching to an activity
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Activities in general (other bugs)
Version First Reported In: 5.27.0
Platform: Other Linux
: LO wishlist
Target Milestone: 1.0
Assignee: Ivan Čukić
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-28 09:54 UTC by Andreas
Modified: 2025-05-21 16:14 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas 2018-04-28 09:54:05 UTC
Working with activities has many benefits if you work on a lot of projects. As I got to do that on a daily basis, I am seeing a number of use cases for an option that lets the user set a script before the user triggered switch to another activity.

I like to stress that it should happen before the switch takes place as there are dbus events being triggered when the switch takes place.

Examples are:

* Unlocking some container that contains files associated with the activity to switch to
* Trigger automatic update of some local files from an on-line resource
* Trigger backup of files in the present activity
* Locking some container that contains files associated with the current activity (which may require to save some open files first)
* Opening/closing applications that are not aware of the plasma activity concept

... perhaps you know some more.

In these cases is important that the command is finished before the switch takes place since files application that have files open will otherwise show old versions or fail to show the file since it is not accessible.

Probably this can be done by adding a setting to the activity manager plasmoid (which I did not find a separate bug section for).
Comment 1 Nate Graham 2025-05-21 16:14:41 UTC
Would be a very nice power user feature.