Comment on app path inferral from launcher

This commit is contained in:
Davide De Rosa 2022-06-26 00:23:13 +02:00
parent 0ff831f021
commit 15dec59692
1 changed files with 3 additions and 0 deletions

View File

@ -32,7 +32,10 @@ extension Constants {
private static let appPath: String = { private static let appPath: String = {
let path = Bundle.main.bundlePath as NSString let path = Bundle.main.bundlePath as NSString
var components = path.pathComponents var components = path.pathComponents
// Passepartout.app/Contents/Library/LoginItems/PassepartoutLauncher.app
components.removeLast(4) components.removeLast(4)
return NSString.path(withComponents: components) return NSString.path(withComponents: components)
}() }()