BUG: "Open Original File" button in Media Info Panel shows no action
Is there an existing issue for this?
- [x] I have searched the existing issues
What happened?
Description
The Open Original File button in the Image Details panel fails to open images in the system's default viewer. Even though the backend provides the correct absolute path, the frontend action is either silent or blocked by security errors.
How to reproduce
- Launch PictoPy and go to the Home gallery.
- Select an image and click the
Show Info (Info icon) button. - Click the
Open Original Filebutton at the bottom of the panel. - Observation: No external application opens, or a
Failed to open fileerror appears in the console.
Root Cause
- Migration Gap: The code uses
open() from @tauri-apps/plugin-shell, which is deprecated/restricted in Tauri v2 for opening local file system paths. - Missing Permissions: The Tauri capabilities configuration lacks the explicit
opener:allow-open-pathpermission. - Missing Scope: Tauri v2 requires an explicit scope
(**)to authorize the opener plugin to access local file paths.
Potential Fix
- Frontend : Migrate from
plugin-shellto@tauri-apps/plugin-openerand useopenPath(currentImage.path) - Configuration : Update the app's capability file
migrated.jsonto include the scoped permission:
{
"identifier": "opener:allow-open-path",
"allow": [{ "path": "**" }]
}
Before Screenshot
After Screenshot
Record
- [x] I agree to follow this project's Code of Conduct
👋 Thanks for opening this issue! The maintainers will review it shortly. Till then, do not open any PR. This is a strict rule we like to follow around here :)
Hi @rahulharpal1603 sir, would you please assign this issue to me, i have already solved it and it is ready for PR.
Hi @rahulharpal1603 sir, is this issue still available? It doesn't look like a PR was submitted despite the earlier comment — happy to pick it up .