Skip to content

Commit 2f37205

Browse files
committed
Try to prevent app from taking focus when activating
1 parent 066e2b4 commit 2f37205

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/EmacsOpenApp/EmacsOpen.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {
3939
let path = "/Users/matt/sw/emacsopen/emacsopen"
4040

4141
func applicationDidFinishLaunching(_: Notification) {
42+
NSApp.setActivationPolicy(.accessory)
4243
let path = "/Users/matt/sw/emacsopen/emacsopen"
4344
runCommand("echo hello")
4445
runCommand(path)

0 commit comments

Comments
 (0)