aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp/resources
diff options
context:
space:
mode:
authorOmair Majid <[email protected]>2011-03-24 08:54:12 -0400
committerOmair Majid <[email protected]>2011-03-24 08:54:12 -0400
commitc92f8485eeea6af5b408c1b534e9ddd26f1e5547 (patch)
tree11f08f862608cd210681a54ca15a7652a05373e9 /netx/net/sourceforge/jnlp/resources
parent3e70eb2b78afa1529bee6d3e03a60264ac5830c1 (diff)
Alternate means of finding browsers
This patch makes netx look for the users' default browser in this order: xdg-open, $BROWSER, and finally prompting the user for the command. To remain backwards compatible, this is only done if the user has not previously specified a default browser. 2011-03-24 Omair Majid <[email protected]> * netx/net/sourceforge/jnlp/resources/Messages.properties: Add RBrowserLocationPromptTitle, RBrowserLocationPromptMessage and RBrowserLocationPromptMessageWithReason. * netx/net/sourceforge/jnlp/runtime/JNLPRuntime.java (isWindows): New method. Moved from XBasicService. (isUnix): New method. * netx/net/sourceforge/jnlp/services/XBasicService (initialize): Call initializeBrowserCommand. (initializeBrowserCommand): New method. (posixCommandExists): New method. (isWindows): Moved to JNLPRuntime.
Diffstat (limited to 'netx/net/sourceforge/jnlp/resources')
-rw-r--r--netx/net/sourceforge/jnlp/resources/Messages.properties3
1 files changed, 3 insertions, 0 deletions
diff --git a/netx/net/sourceforge/jnlp/resources/Messages.properties b/netx/net/sourceforge/jnlp/resources/Messages.properties
index 55717b3..1f95723 100644
--- a/netx/net/sourceforge/jnlp/resources/Messages.properties
+++ b/netx/net/sourceforge/jnlp/resources/Messages.properties
@@ -154,6 +154,9 @@ RConfigurationFatal=ERROR: a fatal error has occurred while loading configuratio
RPRoxyPacNotSupported=Using Proxy Auto Config (PAC) files is not supported.
RProxyFirefoxNotFound=Unable to use Firefox's proxy settings. Using "DIRECT" as proxy type.
RProxyFirefoxOptionNotImplemented=Browser proxy option "{0}" ({1}) not supported yet.
+RBrowserLocationPromptTitle=Browser Location
+RBrowserLocationPromptMessage=Specify Browser Location
+RBrowserLocationPromptMessageWithReason=Specify Browser Location (the browser command "{0}" is invalid).
# Boot options, message should be shorter than this ---------------->
BOUsage=javaws [-run-options] <jnlp file>