mirror of
https://github.com/MonitorControl/MonitorControl.git
synced 2026-05-15 14:15:55 -06:00
Add open sound/brightness preferences from media keys (#168)
This commit is contained in:
parent
afa31400d8
commit
31c313d17b
6 changed files with 32 additions and 6 deletions
|
|
@ -19,7 +19,7 @@
|
|||
<key>CFBundleShortVersionString</key>
|
||||
<string>$(MARKETING_VERSION)</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>640</string>
|
||||
<string>642</string>
|
||||
<key>LSApplicationCategoryType</key>
|
||||
<string>public.app-category.utilities</string>
|
||||
<key>LSBackgroundOnly</key>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
|||
}
|
||||
|
||||
let pathComponents = bundlePath.pathComponents
|
||||
let path = NSString.path(withComponents: Array(pathComponents[0..<(pathComponents.count - 4)]))
|
||||
let path = NSString.path(withComponents: Array(pathComponents[0 ..< (pathComponents.count - 4)]))
|
||||
|
||||
NSWorkspace.shared.launchApplication(path)
|
||||
NSApp.terminate(nil)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue