Implement file association Open a file from Finder/Explorer (#2918)

* implement MacOS openFile/openFiles events

* wip: windows file association

* fix macro import

* add file icon copy

* try copy icon

* keep only required part of scripts

* update config schema

* fix json

* set fileAssociation for mac via config

* proper iconName handling

* add fileAssociation icon generator

* fix file association icons bundle

* don't break compatibility

* remove mimeType as not supported linux for now

* add documentation

* adjust config schema

* restore formatting

* remove unused option in file association

* get rid of openFiles mac os. change configuration structure

* remove unused channel

* fix documentation

* fix typo

---------

Co-authored-by: Lea Anthony <lea.anthony@gmail.com>
This commit is contained in:
Andrey Pshenkin
2023-10-22 06:44:38 +11:00
committed by GitHub
co-authored by Lea Anthony
parent 42708e7f40
commit 6c46f6b41c
13 changed files with 493 additions and 62 deletions
+2 -1
View File
@@ -22,6 +22,7 @@ type Options struct {
WindowIsTranslucent bool
Preferences *Preferences
//ActivationPolicy ActivationPolicy
About *AboutInfo
About *AboutInfo
OnFileOpen func(filePath string) `json:"-"`
//URLHandlers map[string]func(string)
}