Skip to content

Commit

Permalink
appleupdates.py: NSURL fileSystemRepresentation() not available on 10…
Browse files Browse the repository at this point in the history
….8 and earlier, leading to a crash. Replace with NSURL path().
  • Loading branch information
gregneagle committed Apr 7, 2016
1 parent a9b4215 commit 8d5b53b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/client/munkilib/appleupdates.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,8 +505,8 @@ def GetBlockingApps(self, product_key):
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:
Expand Down

0 comments on commit 8d5b53b

Please sign in to comment.