Bumblebee-Project/bumblebee-ui — Issue #12: App Indicator systray bug
Author: skad
Created: 2012-01-21 09:52:33+00:00
State: open

Ui and Appconfig no start :
error :
File "/usr/local/bin/bumblebee-indicator", line 35, in
import app.Config
File "/usr/local/bin/app/Config.py", line 62, in
vgl_display= get_config_value('VGL_DISPLAY').replace(":","")
AttributeError: 'NoneType' object has no attribute 'replace'

patch :
line 8 add :
VGL_DISPLAY=:8

No notification :
error :
(bumblebee-indicator:20393): libnotify-WARNING **: you must call notify_init() before showing
**
libnotify:ERROR:notification.c:568:notify_notification_show: code should not be reached

Patch to do :
line 42
def notify_state(self, title, msg, icon_name):
pynotify.init("Bumblebee notification") <--- line to add
self.notification= pynotify.Notification(title, msg, IconSet().get_uri(icon_name,48))
self.notification.set_urgency(pynotify.URGENCY_CRITICAL)
#FIXME The notification is to slow and this doesn't work
#self.notification.set_timeout(1000)
self.notification.show()

bug
No icon in the systray and in the notification :

patch :
line 56/57
self.ind.set_icon(app.Config.icon_file_directory + "bumblebee-indicator.svg","Bumblebee is unactive")
self.ind.set_attention_icon(app.Config.icon_file_directory + "bumblebee-indicator-active.svg","Bumblebee is active")

to
self.ind.set_icon("bumblebee-indicator.svg","Bumblebee is unactive")
self.ind.set_attention_icon("bumblebee-indicator-active.svg","Bumblebee is active")

Icons must be add in /usr/share/icons

Testing and debugin on Ubuntu 11.10 in gnome shell