Closed mikaelbr closed 7 years ago
It's not intentional sorry, I'll try to fix it quickly.
Thanks for the incredibly swift reply. 👍
It does work if you comply with the file:// protocol though:
terminal-notifier -message 'hello' -open file://localhost/Users/julien/Downloads/IMG_0317.JPG
worked for me.
So not sure it should be "fixed". What's your take on this?
Hm. That's fascinating. For some reason I've never seen using localhost as host on the file scheme before. That does seem to work. But file:///Users/julien/Downloads/IMG_0317.JPG
without host doesn't. Is file:///Users/julien/Downloads/IMG_0317.JPG
actually invalid?
Both syntax are valid https://en.wikipedia.org/wiki/File_URI_scheme, I'll update the code accordingly :)
Fixed, I'll wait a bit for more issues before releasing a new version.
Great. Thank you
Please check everything that applies to your issue:
To help us debug your issue please include:
Reproduce
Run command with
file://
as open.This commit (https://github.com/julienXX/terminal-notifier/commit/94738f8ac9acec635704d5716267856707306857), is a stricter check on URL and causes local files to no longer work as it requires host. Is this intentional?