Recreate a launchagent that logouthelper can use to launch Managed Software Center.

This commit is contained in:
Greg Neagle
2017-02-26 13:00:06 -08:00
parent 6057eda7a8
commit 22a8bfdbbe
2 changed files with 29 additions and 1 deletions

View File

@@ -96,7 +96,7 @@ def alertUserOfForcedLogout(info=None):
# Managed Software Center.app isn't running.
# Use our LaunchAgent to start
# Managed Software Center.app in the user context.
launchfile = '/var/run/com.googlecode.munki.ManagedSoftwareUpdate'
launchfile = '/var/run/com.googlecode.munki.ManagedSoftwareCenter'
f = open(launchfile, 'w')
f.close()
# now wait a bit for it to launch before proceeding

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.googlecode.munki.ManagedSoftwareCenter</string>
<key>LimitLoadToSessionType</key>
<array>
<string>Aqua</string>
</array>
<key>ProgramArguments</key>
<array>
<string>/usr/local/munki/launchapp</string>
<string>-a</string>
<string>/Applications/Managed Software Center.app</string>
</array>
<key>RunAtLoad</key>
<false/>
<key>KeepAlive</key>
<dict>
<key>PathState</key>
<dict>
<key>/var/run/com.googlecode.munki.ManagedSoftwareCenter</key>
<true/>
</dict>
</dict>
</dict>
</plist>