mirror of
https://github.com/munki/munki.git
synced 2026-04-29 00:39:42 -05:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user