Merge branch 'main' into comment

This commit is contained in:
Max Goedjen
2020-11-29 12:02:23 -08:00
committed by GitHub
2 changed files with 5 additions and 1 deletions

View File

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