Describe the bug
On macOS, double-clicking an image in Finder fails to open it in PicView when any folder in the file path contains special characters such as [, ], <, or >. The app either does not respond or opens without loading the image. Drag & drop into the PicView window works correctly.
To Reproduce
- Create a folder with special characters in its name, e.g.
[123] Photos
- Place any image file inside it
- Set PicView as the default app for that image type
- Double-click the image in Finder
- PicView fails to open the image
Expected behavior
The image should open normally, identical to the behavior when dragging and dropping the file into PicView.
Screenshots
N/A
Additional context
- Drag & drop works correctly, so the issue is specific to the double-click / file association code path
- Confirmed affected characters:
[ ] < >
- Suspected cause: on macOS, files opened via Launch Services are passed to the app as a
file:// URI. These characters are reserved or illegal in URI syntax (RFC 3986), so if the path is being parsed as a Uri object without proper escaping, it will fail. Drag & drop likely bypasses this URI parsing, which is why it works.
Version
PicView-4.2.0-macOS-arm64
- This issue was not present in
PicView-4.1.2-macOS-arm64.dmg
Describe the bug
On macOS, double-clicking an image in Finder fails to open it in PicView when any folder in the file path contains special characters such as
[,],<, or>. The app either does not respond or opens without loading the image. Drag & drop into the PicView window works correctly.To Reproduce
[123] PhotosExpected behavior
The image should open normally, identical to the behavior when dragging and dropping the file into PicView.
Screenshots
N/A
Additional context
[]<>file://URI. These characters are reserved or illegal in URI syntax (RFC 3986), so if the path is being parsed as aUriobject without proper escaping, it will fail. Drag & drop likely bypasses this URI parsing, which is why it works.Version
PicView-4.2.0-macOS-arm64
PicView-4.1.2-macOS-arm64.dmg