Bug 1192 - The gnome-shell extension gives an error.
Status:
REOPENED
Component:
GUI
Version:
1.10
Hardware:
All Linux
Importance:
P5 normal
Target Milestone:
---
Assignee:
Rob Caelers
URL:
Depends on:
Blocks:
Reported:
Jan 29 2015 11:27:37 UTC
by:
18**@gm**.com
Modified:
Jan 12 2016 07:03:33 UTC
IdWhoWhenSizeType
303Screenshot of the error.
Screenshot of the error.
18**@gm**.comJan 29 2015 11:27:37 UTC688492image/png
WhoWhenWhatRemovedAdded
Rob CaelersDec 23 2015 18:55:21 UTCstatusNEWRESOLVED
resolutionFIXED
18**@gm**.comJan 12 2016 07:03:33 UTCstatusRESOLVEDREOPENED
resolutionFIXED
Description
18**@gm**.com  Jan 29 2015 11:27:37 UTC
Created attachment 303
Screenshot of the error.

Hello,

Whenever I start my computer the shell extension does not load. But if I start the gnome-shell the extension starts working. I have attached a screen-shot of the error.

I think this happens because the shell is loaded sooner than Workrave. I have written an extension which is like Workrave's extension but does not have this issue.

Please take a look at here:
https://github.com/Gahshomar/gahshomar/blob/master/frontend/applet/gnome-shell/extension.js

Especially this line:
 MainLoop.timeout_add(1000,
Lang.bind(this, this._connect));
Comment 1
Rob Caelers  Dec 23 2015 18:55:21 UTC
Thanks. Added the timeout-trick to Workrave.
Comment 2
18**@gm**.com  Jan 12 2016 07:03:33 UTC
I tried your fix but looks like it introduced a new problem.
On my PC which is fedora 23, when the extension loads, it launches the Workrave itself too (while it shouldn't). The Gnome shell hangs for a few seconds and the extension crashes with a timeout error.

Although on line 96 it uses the no auto launch flag, workrave starts anyway.
Do you have any idea why it is launching Workrave?