winebrowser - open URL without "http://" prefix -run script?

Questions about Wine on macOS.
Locked
xxonotna
Newbie
Newbie
Posts: 2
Joined: Sat Jun 20, 2015 4:58 pm

winebrowser - open URL without "http://" prefix -run script?

Post by xxonotna »

Hello Everyone!

I have a question about the winebrowser:

I am running a Windows-Program (a game) on my mac with wine, which works fine!
The only trouble I have is to open an URL, because the Windows-Program itself transerfs all the URLs without a prefix, so they are all starting with "www.[...]"

I want wine to open these URLs in my default Mac OS X Browser, which is firefox.

To do so, i followed the instructions and added to the Registry-Key:

"HKEY_CURRENT_USER -> Software -> Wine -> Winebrowser" a string "Browsers" with the content "open, firefox"

So if I test the adaption with: "$ wine winebrowser http://www.winehq.org" everything works fine, of course.
But I cant open an URL without the "http://" prefix, because wine fails to parse the URL.
To me that makes sense, because wine is looking for a file called "www.[...]" and doesn't know it should open an URL.


So, finally, my question is:
Is there a way, to execute a shell script instead of open an App?

Because if I could start a script, I could add the prefix "http://" easily.
Another Option would be to wrap a shell script into an App, which i can open with the "Browsers"-Entry.
The problem with that solution is, that i can't assign any parameters, when I open an App. So wine isn't able to pass the paramter (URL) to the App.

Thank you guys, for you help!
xxonotna
Newbie
Newbie
Posts: 2
Joined: Sat Jun 20, 2015 4:58 pm

Re: winebrowser - open URL without "http://" prefix -run scr

Post by xxonotna »

Okay Guys,

Sorry, but now it works just fine.
I think the issue was a excrescent whitespace in the "Browsers"-String.

So what I did was: Added the "script" to /usr/local/bin and filled the Browsers-String just with the script-name.
That's it. It didn't work for the first time, and I'm not sure why?! I think it really was a excrescent whitespace or typing mistake.


Thanks for thinking!
Locked