Ticket #125 (closed defect: fixed)
Trayicon on Windows is broken
| Reported by: | khagaroth | Owned by: | daelstorm |
|---|---|---|---|
| Priority: | major | Milestone: | Release 1.2.8 |
| Component: | nicotine | Version: | SVN (checked out today) |
| Keywords: | Cc: |
Description
From revision 324 up, the trayicon is broken, if I try to run Nicotine I get this error:
Traceback (most recent call last): File "nicotine", line 156, in <module> app = frame.MainApp(config, trayicon) File "C:\Python25\nicotine\pynicotine\gtkgui\frame.py", line 2110, in __init__ self.frame = NicotineFrame(config, trayicon) File "C:\Python25\nicotine\pynicotine\gtkgui\frame.py", line 452, in __init__ if self.HAVE_TRAYICON: AttributeError: NicotineFrame instance has no attribute 'HAVE_TRAYICON'
After that, Nicotine just hangs.
I was able to fix it by adding self.HAVE_TRAYICON = 1 to frame.py, in rev 333 it looks like this:
139: self.TRAYICON_CREATED = 0 140: self.TRAYICON_FAILED = 0 141: self.CREATE_TRAYICON = 0 142: if use_trayicon and config2.sections["ui"]["trayicon"]: 143: self.CREATE_TRAYICON = 1 144: self.HAVE_TRAYICON = 1 145: else: 146: self.HAVE_TRAYICON = 0 147: del data
I'm not a programmer, so I really don't know if thats the correct way to fix it, but it works :-).
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
