-
I'm on macOS Ventura, default browser is Safari.
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Hi Joe. I've been busy with working and also building a cabin in the woods so I haven't been keeping up with things. Thank you for the detailed report, I have a Mac now so I'll test this. Does the page render in Safari? I was going to say check permissions on the bash script but if Chrome is launching it won't be that. A URL parameter is passed to the script. You don't say whether you are passing this through to Chrome. |
Beta Was this translation helpful? Give feedback.
-
@joeballard It sounds like you'll need to update your script to pass the parameters to Chrome. In this case, you'll likely want the
I also notice though that you're using open as your command. On my system that's an alias for xdg-open, which doesn't accept the |
Beta Was this translation helpful? Give feedback.
-
I did some research based on everything said so far.
Edit your file to contain open -a "Google Chrome" $@ That should work. Please let me know if there are any problems. |
Beta Was this translation helpful? Give feedback.
-
Adding the '$@' worked fine. Thanks!! And good luck with the cabin in the woods. |
Beta Was this translation helpful? Give feedback.
-
open -a "Google Chrome" $@ Let's break this down.
|
Beta Was this translation helpful? Give feedback.
Let's break this down.
open -a "application name"
runs an application by name, which is path independent. In this case the application is "Google Chrome". The double-quotes are required when there is a space in the name.$@
means pass the entire command line apart from the application name. It differs from$*
in that$*
parses the parameters first and passes them individually, which can mess with whitespace and order.$@
passes the whole thing through as one big string.