https://bugs.kde.org/show_bug.cgi?id=359244

--- Comment #5 from Ivan Čukić <ivan.cu...@kde.org> ---
Sorry for the slow response.

> applications also have to implement the activity framework

The sad part is that it is not about the activities framework, but something
that existed in X11 for a decade, and so many applications ignore it.
Basically, the session protocol sends the application
save-state-and-close-event, and then tells it to start with the saved state the
next time.

If an application ignores this, it will have problems with activities.

You can create a small script that switches the activity, and starts the
desired application. Basically, this is not really a supported feature, but
more than a few people do it.

This will return IDs of activities you have on your system:
qdbus org.kde.ActivityManager /ActivityManager/Activities ListActivities

You can also open .config/kactivitymanagerdrc - you'll have the IDs along with
the names in the [activities] section.

Then you can create a script

#!/bin/bash
qdbus org.kde.ActivityManager /ActivityManager/Activities SetCurrentActivity
ID_OF_AN_ACTIVITY
application_you_want_to_start & >/dev/null &

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to