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?
Asked
Active
Viewed 954 times
0
-
1I expect the method for determining the default browser is probably different for each operating system. What operating system are you interested in? – Kenster Sep 27 '16 at 18:16
-
I would prefer Windows. – Kamila Szewczyk Sep 27 '16 at 18:17
1 Answers
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.

Community
- 1
- 1

Yosef Weiner
- 5,432
- 1
- 24
- 37