Add code to prevent auto-relaunch of MSU.app after logout/login or restart on Lion.

git-svn-id: http://munki.googlecode.com/svn/trunk@1241 a4e17f2e-e282-11dd-95e1-755cbddbdd66
This commit is contained in:
Greg Neagle
2011-07-20 15:17:04 +00:00
parent f1a6760616
commit 916b67b153
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -17,11 +17,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>3.1.1</string>
<string>3.1.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>3.1.1</string>
<string>3.1.2</string>
<key>LSHasLocalizedDisplayName</key>
<true/>
<key>NSMainNibFile</key>
@@ -58,6 +58,10 @@ class MSUAppDelegate(NSObject):
self.runmode = runmode
NSLog("Runmode: %s" % runmode)
# Prevent automatic relaunching at login on Lion
if NSApp.respondsToSelector_('disableRelaunchOnLogin'):
NSApp.disableRelaunchOnLogin()
consoleuser = munki.getconsoleuser()
if consoleuser == None or consoleuser == u"loginwindow":
# Status Window only