[kactivitymanagerd] [Bug 365606] createActivity in plasma script unreliable

2016-07-18 Thread Ivan Čukić via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=365606 Ivan Čukić changed: What|Removed |Added Status|CONFIRMED |RESOLVED Resolution|---

[kactivitymanagerd] [Bug 365606] createActivity in plasma script unreliable

2016-07-15 Thread Ivan Čukić via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=365606 --- Comment #12 from Ivan Čukić --- Changing KActivities to be more synchronous is a tad more intrusive than I hoped it would be - it is designed to have everything as asynchronous as possible. The change in the ScriptEngine would be much simpler, and

[kactivitymanagerd] [Bug 365606] createActivity in plasma script unreliable

2016-07-15 Thread Ivan Čukić via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=365606 --- Comment #11 from Ivan Čukić --- Ok, the final problem found - ScriptEngine::desktopsForActivity tests whether the activity exists and it is called before the signal that the activity has been created arrived in plasma. The problematic situation: 1.

[kactivitymanagerd] [Bug 365606] createActivity in plasma script unreliable

2016-07-15 Thread Ivan Čukić via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=365606 --- Comment #10 from Ivan Čukić --- After the first problematic part (the above one which is now fixed), the second problem is that sometimes insertActivity is called before activityAdded and sometimes after. insertActivity is called be the script engi

[kactivitymanagerd] [Bug 365606] createActivity in plasma script unreliable

2016-07-13 Thread Ivan Čukić via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=365606 Ivan Čukić changed: What|Removed |Added Status|UNCONFIRMED |CONFIRMED Ever confirmed|0

[kactivitymanagerd] [Bug 365606] createActivity in plasma script unreliable

2016-07-13 Thread Wolfgang Bauer via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=365606 Wolfgang Bauer changed: What|Removed |Added CC||wba...@tmo.at --- Comment #8 from Wolfgang Bau

[kactivitymanagerd] [Bug 365606] createActivity in plasma script unreliable

2016-07-13 Thread Marco Martin via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=365606 --- Comment #7 from Marco Martin --- it certainly seems a probable cause. however, i see in shellcorona.cpp, line 303 connect(m_activityConsumer, &KActivities::Consumer::serviceStatusChanged, this, &ShellCorona::load, Qt::UniqueConnection); ivan: is t

[kactivitymanagerd] [Bug 365606] createActivity in plasma script unreliable

2016-07-13 Thread Wolfgang Bauer via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=365606 --- Comment #6 from Wolfgang Bauer --- I suspect this is a race condition in starting plasmashell and kactivitymanagerd. When it doesn't work, I get the following line in .xsession-errors: ShellCorona::checkActivities is called whilst activity daemon i

[kactivitymanagerd] [Bug 365606] createActivity in plasma script unreliable

2016-07-13 Thread Fabian Vogt via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=365606 --- Comment #5 from Fabian Vogt --- Adding a sleep(100); after the call to loadTemplate seems to work around the issue reliably. sleep(100) before loadTemplate does not have the desired effect. -- You are receiving this mail because: You are watching

[kactivitymanagerd] [Bug 365606] createActivity in plasma script unreliable

2016-07-13 Thread Marco Martin via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=365606 --- Comment #4 from Marco Martin --- It seems that when it doesn't work, the created activity is actually missing in ~/.config/kactivitymanagerdrc that wouldsuggest a problem in kactivitymanager? -- You are receiving this mail because: You are watchi

[kactivitymanagerd] [Bug 365606] createActivity in plasma script unreliable

2016-07-13 Thread Marco Martin via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=365606 --- Comment #3 from Marco Martin --- possible patch: diff --git a/shell/shellcorona.cpp b/shell/shellcorona.cpp index 43ce83d..a0b25a4 100644 --- a/shell/shellcorona.cpp +++ b/shell/shellcorona.cpp @@ -1237,9 +1237

[kactivitymanagerd] [Bug 365606] createActivity in plasma script unreliable

2016-07-13 Thread Ivan Čukić via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=365606 --- Comment #2 from Ivan Čukić --- There were no (intentional) changes to kamd in recent releases. I'll investigate, but I think the problem is in plasmashell. -- You are receiving this mail because: You are watching all bug changes.

[kactivitymanagerd] [Bug 365606] createActivity in plasma script unreliable

2016-07-13 Thread Luca Beltrame via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=365606 Luca Beltrame changed: What|Removed |Added CC||notm...@gmail.com --- Comment #1 from Luca Belt

[kactivitymanagerd] [Bug 365606] createActivity in plasma script unreliable

2016-07-13 Thread Luca Beltrame via KDE Bugzilla
https://bugs.kde.org/show_bug.cgi?id=365606 Luca Beltrame changed: What|Removed |Added CC||lbeltr...@kde.org -- You are receiving this ma