How to change which web browser to start

Hi

How can I change which web brower that starts when I do Build And Run?

Thanks,
Mikael

I realized this is determined by the Windows settings. Ideally I would like to be able to control this via a setting in Unity to be able to use a browser different from the one I have selected as default in Windows.

1 Like

Hello mikaelwallen.
Generally there is no reliable cross-platform way to enumerate all the installed applications that you would qualify as browsers. For example, on Windows you can of course try to track the file types associated with applications, however that sometimes gives some unexpected results. Try to click Open with… on an html file in Windows, and occasionally you might find, for example, applications like Microsoft Visual Studio etc. in the list, which is clearly not a browser. So it is not that trivial to generate the list of browsers that user can select from.
Technically a settings where you can manually enter the opening application command line can be added, however, it might then make more sense to just provide the setting where you can specify the serving port. That way you would know the url in advance and could just refresh the page in the browser you want to test the build in.
Basically it is the operating system that is responsible for opening the provided url properly. Also, if you want to test your build in another browser, you can just open the provided url there.

1 Like

I don’t think the GUI guidelines for Windows really allow you to change the browser settings, unless the app making the change is itself a browser. You COULD do it, but it wouldn’t be good practice. Leave OS settings to the OS.

Thank you for the answers!