If a browser is not specified in config or cannot be found, the system default should be used.
On linux this just involved running xdg-open http://myurl.com
On windows just run start http://myurl.com
Semi fixes #92
kinda added the required stuff, but it does not work in my windows machine.
What happens? I don't have windows easily available to test.
There are 2 caveats with start:
It's not a separate executable, so you need cmd /c to invoke it
If you need to double-quote the URL (some URLs, such as those containing & would otherwise break the command), you need an extra parameter before the URL - "".
In short, you'll need to launch the equivalent of something like:
cmd /c start "" "http://boston.com"
Couldn't translate the above into the array-based method of invoking subprocess.Popen().
The string-scalar approach works, however, on both Python 2.7.4 and 3.3.1:
subprocess.Popen('cmd /c start "" "' + url + '"')
Lazy load sendtotrash, desktop. 2nd fix #92
It works, thank you!