From 15dec59692a48d90805c905788752d617e52888d Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Sun, 26 Jun 2022 00:23:13 +0200 Subject: [PATCH] Comment on app path inferral from launcher --- Passepartout/Launcher/Constants/Constants+Launcher.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Passepartout/Launcher/Constants/Constants+Launcher.swift b/Passepartout/Launcher/Constants/Constants+Launcher.swift index 44618dea..df34047c 100644 --- a/Passepartout/Launcher/Constants/Constants+Launcher.swift +++ b/Passepartout/Launcher/Constants/Constants+Launcher.swift @@ -32,7 +32,10 @@ extension Constants { private static let appPath: String = { let path = Bundle.main.bundlePath as NSString var components = path.pathComponents + + // Passepartout.app/Contents/Library/LoginItems/PassepartoutLauncher.app components.removeLast(4) + return NSString.path(withComponents: components) }()