From 276e72d9d6c8d10c9c98119009ec021425f350e9 Mon Sep 17 00:00:00 2001 From: Michael Webster Date: Sun, 10 Mar 2013 19:47:02 -0400 Subject: [PATCH] Reduce startup spam --- usr/lib/linuxmint/mintMenu/plugins/easybuttons.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/lib/linuxmint/mintMenu/plugins/easybuttons.py b/usr/lib/linuxmint/mintMenu/plugins/easybuttons.py index 03830e9..fb09620 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/easybuttons.py +++ b/usr/lib/linuxmint/mintMenu/plugins/easybuttons.py @@ -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