Make Livebook Desktop show up in Spotlight search (#1930)

This commit is contained in:
Bobby McDonald 2023-05-26 05:00:39 -04:00 committed by GitHub
parent 705f122b75
commit 2f2c959c89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -10,6 +10,8 @@
<string>$(app_version)</string>
<key>CFBundleIconFile</key>
<string>AppIcon</string>
<key>CFBundleExecutable</key>
<string>Livebook</string>
<key>LSUIElement</key>
<true/>
<key>LSRequiresNativeExecution</key>

View file

@ -92,6 +92,10 @@ class AppDelegate: NSObject, NSApplicationDelegate {
ElixirKit.API.stop()
}
func applicationDidBecomeActive(_ aNotification: Notification) {
ElixirKit.API.publish("open", "")
}
func application(_ app: NSApplication, open urls: [URL]) {
if !ElixirKit.API.isRunning {
initialURLs = urls