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!
winebrowser - open URL without "http://" prefix -run script?
Re: winebrowser - open URL without "http://" prefix -run scr
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!
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!