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?
-
1I expect the method for determining the default browser is probably different for each operating system. What operating system are you interested in?Kenster– Kenster2016-09-27 18:16:27 +00:00Commented Sep 27, 2016 at 18:16
-
I would prefer Windows.user6889435– user68894352016-09-27 18:17:03 +00:00Commented Sep 27, 2016 at 18:17
Add a comment
|
1 Answer
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.