Update ApplicationDirectoryController.swift (#178)

This commit is contained in:
Max Goedjen 2020-11-25 18:13:46 -08:00 committed by GitHub
parent 702388fdf8
commit dc91f61dba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ extension ApplicationDirectoryController {
var isInApplicationsDirectory: Bool { var isInApplicationsDirectory: Bool {
let bundlePath = Bundle.main.bundlePath let bundlePath = Bundle.main.bundlePath
for directory in NSSearchPathForDirectoriesInDomains(.applicationDirectory, .allDomainsMask, true) { for directory in NSSearchPathForDirectoriesInDomains(.allApplicationsDirectory, .allDomainsMask, true) {
if bundlePath.hasPrefix(directory) { if bundlePath.hasPrefix(directory) {
return true return true
} }