After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 662668 - Can't show window hidden in the status tray from the command line
Can't show window hidden in the status tray from the command line
Status: RESOLVED OBSOLETE
Product: hamster-applet
Classification: Deprecated
Component: general
2.91.x
Other Linux
: Normal normal
: ---
Assigned To: hamster-applet-maint
hamster-applet-maint
Depends on:
Blocks:
 
 
Reported: 2011-10-25 12:38 UTC by Raphael Hertzog
Modified: 2012-09-24 19:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Raphael Hertzog 2011-10-25 12:38:22 UTC
Even since the switch to GNOME3, I have been starting hamster-applet with a keyboard shorcut configured in the Shell. This simply executes "hamster-time-tracker". This worked fine up to recently. I ended up quitting and restarting the application often but it's ok.

Now with clicking on the cross doesn't quit hamster, but it reduces it in the systray. That's ok except that the only way to display again the window is to click on this icon. My shortcut doesn't work anymore.

Instead I get a traceback on the command line:
$ hamster-time-tracker 
Gtk-Message: Failed to load module "pk-gtk-module"
Traceback (most recent call last):
  • File "/usr/bin/hamster-time-tracker", line 612 in <module>
    getattr(server, window)()
  • File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 68 in __call__
    return self._proxy_method(*args, **keywords)
  • File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 143 in __call__
    **keywords)
  • File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 630 in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.AttributeError: Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/dbus/service.py", line 702, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/bin/hamster-time-tracker", line 562, in main
    self.app.window.show()
AttributeError: 'NoneType' object has no attribute 'show'


If I use "hamster-time-tracker toggle" I have no traceback but nothing happens. If the window is hidden, it stays hidden. If it's visible, it stays visible.

I'm running the Debian package 2.91.3+git20110714.9aefd7-2 which is a Git snapshot (commit 9aefd7). I suspect the commit 9aefd7 to be the one introducing the problem...
Comment 1 Toms Bauģis 2012-09-24 19:11:35 UTC
the hotkey is now back in extension i wonder if the cli has also fixed itself. if not, tracking all cli bugs here: https://github.com/projecthamster/hamster/issues/21