mirror of
https://github.com/munki/munki.git
synced 2025-12-21 14:29:32 -06:00
Recreate a launchagent that logouthelper can use to launch Managed Software Center.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user