Bug 321002 - windows are on all activities when powermanagement is disabled
Summary: windows are on all activities when powermanagement is disabled
Status: RESOLVED FIXED
Alias: None
Product: kactivitymanagerd
Classification: Plasma
Component: general (show other bugs)
Version: 4.10.4
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Ivan Čukić
URL:
Keywords:
: 323840 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-06-10 15:35 UTC by alphsteiner
Modified: 2016-02-28 10:28 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alphsteiner 2013-06-10 15:35:59 UTC
This bug appeared with kde 4.10.
The windows visibility on the activities depend on the status of 'Power Management'. If it is disabled, they are on all activities, and this cannot be changed without restarting kwin.
See the steps for more details.

Reproducible: Always

Steps to Reproduce:
1. Be sure to have at least two activities.
    Start ' kcmshell4 kcmkded' and desactivate 'Power Management'.
2. Logout the session.
3. Loggin a new session, and open a window: it is opened on all activities.
    In the window menu, the menu 'Activity' (which let you choose on which activity to put the window) is absent.
4. Run 'kwin --replace' and the 'activity' menu is back! The checkbox 'all activities' is checked.

5. If you reenable 'Power Management', all is back to normal in the next session.
Comment 1 Thomas Lübking 2013-06-11 11:11:20 UTC
I doubt this is about powermanagement, but rather the startup sequence of services, ie. kactivitymanagerd not being up when kwin initializes and for some ominous reason not talking to it when finally started.

 @Ivan
does the kactivity lib re-attempt connecting the server after an initial fail?
Comment 2 Ivan Čukić 2013-06-11 11:49:39 UTC
It should. And it should emit Consumer::serviceStatusChanged signal.
Comment 3 Thomas Lübking 2013-08-21 18:43:07 UTC
*** Bug 323840 has been marked as a duplicate of this bug. ***
Comment 4 Thomas Lübking 2013-08-21 19:44:30 UTC
Easy to reproduce:

kquitapp kactivitymanagerd
kwin --replace &
(kactivitymanagerd)

(Or more controlled as it seems the lib attempts to autorun the daemon)

kquitapp kactivitymanagerd
sudo chmod -x /usr/bin/kactivitymanagerd
kwin --replace &
sudo chmod +x /usr/bin/kactivitymanagerd
kactivitymanagerd

-> No activity list

The reason is simple: even a simple unthreaded call

  qDebug() << m_controller->listActivities() << m_controller->currentActivity();

from the head of Activities::update(bool running, bool updateCurrent, QObject *target, QString slot) in activities.cpp continuosly replies an empty list and an empty string although the state is detected as "3" - "Running"

--> Reassigning to kactivities.
Comment 5 Ivan Čukić 2015-05-02 14:26:37 UTC
Works in Plasma 5