Open
Docs: https://docs.api.kunkun.sh/interfaces/ui.IOpen
Permissions
Open API may potentially be used to open malicious URLs or files.
To prevent this, detailed permissions must be declared in the manifest file. Only URLs and file paths matching the declared patterns will be allowed.
url
:'open:url'
permission is required to use this API.folder
:open:folder
permission is required to use this API.file
:open:file
permission is required to use this API.
url
To allow any https URL, use https://**
.
folder
The following permissions means
- Allow to open any folder under the
Desktop
folder (recursively) - Allow to open the
Downloads
folder - Allow to open any file in the
dev
folder under theDocuments
folder
See FS API for more details on the path pattern and folder alias.
file
Similar to openFolder
, but only allow to open files.
Can be used set to open specific files only.
See FS API for more details on the path pattern and folder alias.