apache / netbeans

Apache NetBeans
https://netbeans.apache.org/
Apache License 2.0
2.62k stars 841 forks source link

Default browser on Windows #3960

Open michelecos opened 2 years ago

michelecos commented 2 years ago

Description

After all these years, Netbeans still thinks that the default browser on Windows is Internet Explorer.

Use case/motivation

NetBeans should honor system settings

Related issues

No response

Are you willing to submit a PR?

Code of Conduct

pontushenriksson commented 1 year ago

Is this something that is still open and that I can try out?

hellsing71 commented 1 year ago

I just downloaded the latest Netbeans. The issue is still in the app.

I clicked a link in the description of a plugin and it starts Edge. My default browser is Firefox for everything I can set (htm, html, shtml, svg, xht, xhtml, http, https). Options » General » Browser was set to , but Netbeans opened Edge. I changed the Process of the Default Browser to Firefox, still it opened Edge.

I changed the Web Browser from Default System to Firefox, now it's fine.

kamilkrzywanski commented 1 year ago

For get default browser is responsible public static native String getDefaultOpenCommand() throws NbBrowserException; which read registy and return default browser, but this native method implementation is outdated. It read outdated path from HKEY_CLASSES_ROOT. Is any reason why it's native method?(NbDDEBrowserImpl.cpp) If it's may be rewrite as java method I can fix it. Btw. when I try to change native method nothing happens also i make tihis: image It still return iexplorer. Can someone explain me why?

dragonsKnight5 commented 10 months ago

Hi, I believe I have worked out what changes need to be made, but when I attempt to try them out the changes I made to the NbDDEBrowserImpl.cpp file don't appear to be present in any way.

Is there something in particular I need to do for changes made to the c++ files to be active at runtime?