0

I want to check what default browser is set on computer (name in string). I googled somewhat and i know how to open browser, but i need to check what program will be opened then. How to do this?

2
  • 1
    I expect the method for determining the default browser is probably different for each operating system. What operating system are you interested in? Commented Sep 27, 2016 at 18:16
  • I would prefer Windows. Commented Sep 27, 2016 at 18:17

1 Answer 1

3

The information is in the windows registry key HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice\Progid. You can read the key with Java.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.