hacker-tray.png missing
brunal opened this issue · comments
images/hacker-tray.png
is not packaged with the code, and this seems to prevent the application from running. The stack trace I get is:
Traceback (most recent call last):
File "/usr/bin/hackertray", line 4, in <module>
indicator = HackerNewsApp()
File "/usr/lib/python2.7/site-packages/hackertray/__init__.py", line 31, in __init__
self.ind = appindicator.Indicator ("Hacker Tray", "hacker-tray", appindicator.CATEGORY_APPLICATION_STATUS)
File "/usr/lib/python2.7/site-packages/hackertray/appindicator_replacement.py", line 62, in __init__
self.icon.set_from_file(self.inactive_icon)
TypeError: Gtk.StatusIcon.set_from_file() argument 1 must be string, not None
Replacing line 44 of appindicator_replacement.py
with
return ""
in stead of
return None
fixes the crash (but not the underlying problem).
Which operating system is this?
Arch Linux
Can you try using the statusicon branch? I've made some changes, but I'm not sure if they will work. As an alternative, you can try installing libappindicator
This did fix the problem, thank you.
There's still one: in setup.py
you reference the file bin/hackertray
which does not exist. I'll open another issue/submit a merge request for that.
I've pushed 1.4 with bin/hackertray in the repo.