diff options
author | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2012-07-02 10:09:23 +0000 |
---|---|---|
committer | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2012-07-02 10:09:23 +0000 |
commit | c35f3afd63de49862df21ba4c1265a753cd76dd0 (patch) | |
tree | 94813cd181516a771bf76bc14b0d052c8f8e4125 /src/net/java/sip/communicator/launcher/BrowserLauncher.java | |
parent | 266d1c2e80e66e964f8b2ae712a5cc4b15c8a7fe (diff) | |
download | jitsi-c35f3afd63de49862df21ba4c1265a753cd76dd0.zip jitsi-c35f3afd63de49862df21ba4c1265a753cd76dd0.tar.gz jitsi-c35f3afd63de49862df21ba4c1265a753cd76dd0.tar.bz2 |
Tries to fix 'Jitsi (Debian 32-bit) crashes at startup' reported by Kertesz Laszlo on the dev mailing list.
Diffstat (limited to 'src/net/java/sip/communicator/launcher/BrowserLauncher.java')
-rw-r--r-- | src/net/java/sip/communicator/launcher/BrowserLauncher.java | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/net/java/sip/communicator/launcher/BrowserLauncher.java b/src/net/java/sip/communicator/launcher/BrowserLauncher.java index e88bfea..7cb5fc9 100644 --- a/src/net/java/sip/communicator/launcher/BrowserLauncher.java +++ b/src/net/java/sip/communicator/launcher/BrowserLauncher.java @@ -6,8 +6,6 @@ */ package net.java.sip.communicator.launcher; -import org.jitsi.util.*; - import com.apple.eio.*; /** @@ -57,11 +55,19 @@ public class BrowserLauncher { try { - if (OSUtils.IS_MAC) + /* + * XXX The detection of the operating systems is the + * responsibility of OSUtils. It used to reside in the util.jar + * which is in the classpath but it is now in libjitsi.jar which + * is not in the classpath. + */ + String osName = System.getProperty("os.name"); + + if ((osName != null) && osName.startsWith("Mac")) { FileManager.openURL(url); } - else if (OSUtils.IS_WINDOWS) + else if ((osName != null) && osName.startsWith("Windows")) { Runtime.getRuntime().exec( "rundll32 url.dll,FileProtocolHandler " + url); |