mirror of
https://github.com/maxgoedjen/secretive.git
synced 2026-11-07 11:35:59 +01:00
Update ApplicationDirectoryController.swift (#178)
This commit is contained in:
1 parent
702388fdf8
commit
dc91f61dba
1 file changed
+1
-1
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user