mirror of
https://github.com/munki/munki.git
synced 2026-05-02 10:19:32 -05:00
appleupdates.py: NSURL fileSystemRepresentation() not available on 10.8 and earlier, leading to a crash. Replace with NSURL path().
This commit is contained in:
@@ -505,8 +505,8 @@ class AppleUpdates(object):
|
||||
for app_id in set(must_close_app_ids):
|
||||
dummy_resultcode, dummy_fileref, nsurl = LSFindApplicationForInfo(
|
||||
0, app_id, None, None, None)
|
||||
if nsurl:
|
||||
pathname = nsurl.fileSystemRepresentation()
|
||||
if nsurl and nsurl.isFileURL():
|
||||
pathname = nsurl.path()
|
||||
dirname = os.path.dirname(pathname)
|
||||
executable = munkicommon.getAppBundleExecutable(pathname)
|
||||
if executable:
|
||||
|
||||
Reference in New Issue
Block a user