Reduce startup spam

This commit is contained in:
Michael Webster 2013-03-10 19:47:02 -04:00
parent 4a12c1f716
commit 276e72d9d6

View File

@ -310,8 +310,8 @@ class ApplicationLauncher( easyButton ):
self.startupFilePath = os.path.join( os.path.expanduser("~"), ".config", "autostart", basename )
if self.startupMonitorId:
filemonitor.removeMonitor( self.startupMonitorId )
self.startupMonitorId = filemonitor.addMonitor( self.startupFilePath, self.startupFileChanged )
#self.inStartup = os.path.exists( self.startupFilePath )
if os.path.exists (self.startupFilePath):
self.startupMonitorId = filemonitor.addMonitor( self.startupFilePath, self.startupFileChanged )
except Exception, e:
print e