+ FremantleRotation.__init__(self, 'DrlaunchPlugin',
+ mode=FremantleRotation.AUTOMATIC, dontrotate=True)
+ Disconnector.__init__(self)
+
+ self.winConfig=None
+
+ self.gconf=gconf.client_get_default()
+
+ self.set_settings(True)
+
+ self.id=None
+ self.config=None
+
+ self.reset_mode()
+
+ def get_id0(self):
+ """If this is called from the constructor then the program
+ core dumps """
+ aid=self.get_applet_id()
+
+ # Get desktop activity if D.A.M. is present
+
+ act="/usr/bin/activity"
+
+ if os.path.exists(act):
+ r=Popen([act, "current"], stdout=PIPE).communicate()
+ activity=r[0].strip()
+ else:
+ activity=""
+
+ ret="%s-%s" % (aid, activity)
+
+ return(ret)
+
+ def get_id(self):
+ if self.id==None:
+ self.id=self.get_id0()