Package: hamster-applet
Version: 2.91.3+git20120514.b9fec3e1-2

If program is configured to start action on workspace switch, then it will not 
start on next run/

Also anyway the switching is not working (in the run when it was working)



$ hamster-time-tracker 

Traceback (most recent call last):
  File "/usr/bin/hamster-time-tracker", line 602, in <module>
    app = ProjectHamster()
  File "/usr/bin/hamster-time-tracker", line 110, in __init__
    self.init_workspace_tracking()
  File "/usr/bin/hamster-time-tracker", line 209, in init_workspace_tracking
    if not wnck: # can't track if we don't have the trackable
NameError: global name 'wnck' is not defined


Trying to apply a fix as the error message writes, does NOT help (but probably 
I'm doing it wrong?)
below other imports on top of the executable (line around 30) I added:

from gi.repository import Wnck

but it resulted in bug:


Traceback (most recent call last):
  File "/home/myuser/.local/bin/hamster-time-tracker", line 30, in <module>
    from gi.repository import Wnck
  File "/usr/lib/python2.7/dist-packages/gi/__init__.py", line 39, in <module>
    raise ImportError(_static_binding_error)
ImportError: When using gi.repository you must not import static modules like 
"gobject". Please change all occurrences of "import gobject" to "from 
gi.repository import GObject". See: 
https://bugzilla.gnome.org/show_bug.cgi?id=709183

this error message is confusing, sime I seem to be doing exactly what they 
wanted there.


A work around to start the program again (but still desktop switching detection 
is broken) is to edit the program script,
and around line 210, right below line:

def init_workspace_tracking(self):

add following line (with 1 indentation, e.g. 1 tab, or 2 spaces maybe?)

  return # TODO workaround for bug












Reply via email to