Skip to content

opener plugin docs missing mention of requireLiteralLeadingDot #2748

@masiama

Description

@masiama

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

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions