Skip to content

Open File

banner

With this action, you can open a file or directory. While you could also use the “Run Command” or “Open URI” item types for this, the “Open File” action provides file pickers for both files and directories.

This action has the following options.

  • Path: The path of the file or directory to open. The file or directory will be opened with the default application for it. You can click on the “Pick File” or “Pick Directory” button next to the option in the menu editor to open a file or directory picker.

If you edit your menus.json file by hand or use the IPC interface, you can create this action with something like the following.

menus.json
...
"selectWorkflow": {
"actions": [
...
{
"type": "open-file",
"path": "/home/simon/Desktop"
}
...
]
}
...