=== modified file 'battery-status' --- battery-status 2010-05-25 23:29:49 +0000 +++ battery-status 2010-12-27 21:49:05 +0000 @@ -37,7 +37,17 @@ import gtk import pygtk import gconf -import gnomeapplet +try: + import gnomeapplet + module_panel = True +except: + class gnomeapplet: + class Applet: + __gtype__ = 0 + class bonobo_factory: + def __init__ (a, b, c, d, e, f): + pass + module_panel = False import dbus from dbus.mainloop.glib import DBusGMainLoop @@ -3091,6 +3101,11 @@ print "\t--indicator\t- run battery status in indicator applet area" sys.exit(0) else: + if not module_panel: + print 'Error: GNOME panel Python bindings not installed' + if module_indicator: + print 'Run with --indicator to use Ayatana indicator' + sys.exit (1) # for daily usage as applet run_in_panel()