mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-08 20:46:16 +08:00
Make Livebook Desktop show up in Spotlight search (#1930)
This commit is contained in:
parent
705f122b75
commit
2f2c959c89
2 changed files with 6 additions and 0 deletions
|
@ -10,6 +10,8 @@
|
||||||
<string>$(app_version)</string>
|
<string>$(app_version)</string>
|
||||||
<key>CFBundleIconFile</key>
|
<key>CFBundleIconFile</key>
|
||||||
<string>AppIcon</string>
|
<string>AppIcon</string>
|
||||||
|
<key>CFBundleExecutable</key>
|
||||||
|
<string>Livebook</string>
|
||||||
<key>LSUIElement</key>
|
<key>LSUIElement</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>LSRequiresNativeExecution</key>
|
<key>LSRequiresNativeExecution</key>
|
||||||
|
|
|
@ -92,6 +92,10 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
||||||
ElixirKit.API.stop()
|
ElixirKit.API.stop()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func applicationDidBecomeActive(_ aNotification: Notification) {
|
||||||
|
ElixirKit.API.publish("open", "")
|
||||||
|
}
|
||||||
|
|
||||||
func application(_ app: NSApplication, open urls: [URL]) {
|
func application(_ app: NSApplication, open urls: [URL]) {
|
||||||
if !ElixirKit.API.isRunning {
|
if !ElixirKit.API.isRunning {
|
||||||
initialURLs = urls
|
initialURLs = urls
|
||||||
|
|
Loading…
Add table
Reference in a new issue