Summary: | KActivites does not support Session Management | ||
---|---|---|---|
Product: | [Plasma] kactivitymanagerd | Reporter: | dolgener |
Component: | general | Assignee: | Ivan Čukić <ivan.cukic> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | CC: | plasma-bugs |
Priority: | NOR | ||
Version: | 4.8.4 | ||
Target Milestone: | --- | ||
Platform: | Debian testing | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
dolgener
2012-10-16 08:22:02 UTC
The window /throwing/ is a separate issue, so I'm not going to comment on it here. Please check whether the idea already exists here, and if not, post a feature request. As for the app-activity restoration, the activity manager does its best concerning that the session protocol was never designed for this kind of usage. Unfortunately, until there is a new protocol that all desktop environments and applications start supporting, this can not be fixed. If there was a way to enumerate all windows together with their activity-state (assignment), I'd like to write a (e.g. minutely cron) script capturing the current association into a file, which could be used to restore at least most of the assignments some seconds after logon, as soon as all applications have been started again. Any hints how to achive this? (Of course, this is what IMHO activity manager should be able, too... if it fails on a few windows this would be much better than on all!) You can seek the XAtom named _KDE_NET_WM_ACTIVITIES - it will tell you ids of activities a window belongs to. Mind that this approach you want to take is not going to work: - one window can be on multiple activities - one application can have windows spread onto multiple activities - window ids are not persistent and you can't tell which windows were on which activity even if the application manages to restore them properly - more reasons :) If you do manage to write something useful, please post the script back here. |