void IExtensionService.Initialize ()
{
try {
Log.DebugFormat ("BansheeAwn. Starting {0}", Application.ActiveClient.ClientId);
awn = DBus.Bus.Session.GetObject<IAvantWindowNavigator> ("com.google.code.Awn",
new DBus.ObjectPath ("/com/google/code/Awn"));
// Dummy call to check that awn is really there
awn.UnsetTaskIconByName ("banshee-dummy");
service = ServiceManager.PlayerEngine;
service.ConnectEvent (new PlayerEventHandler (this.OnEventChanged));
Log.Debug ("BansheeAwn - Initialized");
} catch (Exception ex) {
Log.Exception ("BansheeAwn - Failed loading Awn Extension. ", ex);
awn = null;
}
}