Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Help>References and Help>Environment open in default browser in Windows #2657
This makes a file whose path is like
into a file with the path
This seems to solve the Windows specific issue where the Desktop.getDesktop().browse(URI uri) function fails without affecting Linux atleast (pretty sure it won't affect OS X either, since the 2 files are effectively the same).
By default browser, I meant that the Desktop.getDesktop().browse(URI uri) function, which is supposed to open the file in the browser, fails to do so.
Sorry, I know what getCanonicalFile() does, it just didn't make sense in this context. My question was "why would using that fix the default browser"?
I didn't understand from your report that the browser was failing to load—it sounded like your problem was that it was using the "default" browser instead of something else that you wanted. Makes more sense from your description.