[icedtea-web] RFC: use browser path from configuration
omajid at redhat.com
Mon Nov 8 07:19:32 PST 2010
On 11/06/2010 12:12 PM, Matthias Klose wrote:
> On 05.11.2010 14:43, Omair Majid wrote:
>> The attached patch integrates the browser path selection and usage
>> into the netx
>> 2010-11-05 Omair Majid <omajid at redhat.com>
>> * netx/net/sourceforge/jnlp/runtime/DeploymentConfiguration.java:
>> Add KEY_BROWSER_PATH.
>> (loadDefaultProperties): Use KEY_BROWSER_PATH.
>> * netx/net/sourceforge/jnlp/services/XBasicService.java
>> (initialize): Use the browser command from the configuration.
>> Save updates to configuration as well.
>> Any thoughts or comments?
> is there no way to detect the browser which is currently running (e.g.
> an environment variable set by the browser?)
One of the goals for this project is to be 100% compatible to Java Web
Start. And Java Web Start uses a single preselected browser using the
same configuration option. Yes, it's not the greatest way to find the
user's browser but since Java Web Start does it this way, we should
support it too.
That said, I would like to add additional methods to find the user's
preferred browser. Do you know of a simple way to identify the current
browser? It is possible to use xdg-open but a quick test shows that it
uses the user's default (not necessarily the currently running) browser
to open the URL. If you know of alternatives, please let me know.
I cant guarantee when I will get around to implementing this though. Of
course, patches are more than welcome!
More information about the distro-pkg-dev