-
Notifications
You must be signed in to change notification settings - Fork 425
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationplugin: opener
Description
For context, I open a PDF file by the path returned from the backend. The backend uses platform_dirs::AppDirs
with use_xdg_on_macos
being true
. The frontend receives a path that looks like /Users/user/.local/share/app/file.pdf
. It starts to work only if to move the file outside the .local
folder.
Code
openPath("/Users/user/.local/share/app/file.pdf"); // Error
openPath("/Users/user/.local/share/file.pdf"); // Error
openPath("/Users/user/.local/file.pdf"); // Error
openPath("/Users/user/file.pdf"); // No error
Error
Not allowed to open path /Users/user/.local/share/app/file.pdf
Permission
{
"identifier": "opener:allow-open-path",
"allow": [{ "path": "**/*.pdf" }]
}
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentationplugin: opener