Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-open is not working with "file:///" or "file://localhost/" or "file://$HOSTNAME/" #253

Open
2 tasks done
tjluoma opened this issue Jul 16, 2018 · 1 comment
Open
2 tasks done
Labels

Comments

@tjluoma
Copy link

tjluoma commented Jul 16, 2018

Please check everything that applies to your issue:

  • I looked in closed issues and it has not already been answered

It appears that similar problems have been discussed before #181 and #215 but I'm having the issue with terminal-notifier 2.0.0.

  • [? ] My issue appeared with a terminal-notifier update

I just started using terminal-notifier again, so I'm not sure if this is a new issue or not

  • I'm using a tool that uses terminal-notifier (guard-notifier, node-notifier...)

Nope, I'm just trying to run it in a shell script or at the command-line.

To help us debug your issue please include:

  • the macOS version you use

ProductName: Mac OS X
ProductVersion: 10.13.6
BuildVersion: 17G65

  • terminal-notifier version

2.0.0

  • how did you install terminal-notifier (binary download, homebrew, ruby gem...)?

homebrew

  • step-by-step reproduction instructions

First, I tried "file:///" and got an error:

Here is what I tried:

terminal-notifier -message "This is the Message" -title "This is the Title" -group "zsh" -subtitle "Click to see Conflicts in Finder" -open "file:///Users/luomat/Library/Saved Searches/Dropbox-Conflicted-Copies.savedSearch"

And here is the error message:

2018-07-15 20:33:27.612 terminal-notifier[21441:193711] 'file:///Users/luomat/Library/Saved Searches/Dropbox-Conflicted-Copies.savedSearch' is not a valid URI.

Then I saw the suggestion to try 'localhost' so I tried that instead:

terminal-notifier -message "This is the Message" -title "This is the Title" -group "zsh" -subtitle "Click to see Conflicts in Finder" -open "file://localhost/Users/luomat/Library/Saved Searches/Dropbox-Conflicted-Copies.savedSearch"

But still got the same error:

2018-07-15 20:32:27.853 terminal-notifier[21346:192439] 'file://localhost/Users/luomat/Library/Saved Searches/Dropbox-Conflicted-Copies.savedSearch' is not a valid URI.

Last, I tried "$HOST" (I tried "$HOSTNAME" but apparently zsh uses "$HOST" instead)

terminal-notifier -message "This is the Message" -title "This is the Title" -group "zsh" -subtitle "Click to see Conflicts in Finder" -open "file://$HOST/Users/luomat/Library/Saved Searches/Dropbox-Conflicted-Copies.savedSearch"

But still an error:

2018-07-15 20:31:37.436 terminal-notifier[21255:191109] 'file://m1.local/Users/luomat/Library/Saved Searches/Dropbox-Conflicted-Copies.savedSearch' is not a valid URI.

Common issues and solution:

Not using tmux

I am using iTerm, but I tried in Terminal.app and got the exact same errors

@julienXX julienXX added the bug label Aug 3, 2018
@julienXX
Copy link
Owner

julienXX commented Aug 3, 2018

Hi @tjluoma sorry been quite busy these days, I'll have a look pretty soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants