diff options
| -rw-r--r-- | Dozentenmodul/src/models/Links.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Dozentenmodul/src/models/Links.java b/Dozentenmodul/src/models/Links.java index 5490f3ad..b01d99e9 100644 --- a/Dozentenmodul/src/models/Links.java +++ b/Dozentenmodul/src/models/Links.java @@ -30,7 +30,6 @@ public class Links { if (os.indexOf( "Win" ) >= 0) { - // this doesn't support showing urls in the form of "page.html#nameLink" rt.exec( "rundll32 url.dll,FileProtocolHandler " + faq); } else if (os.indexOf( "Mac" ) >= 0) { @@ -44,7 +43,6 @@ public class Links { String[] browsers = {"epiphany", "firefox", "mozilla", "konqueror", "netscape","opera","links","lynx"}; - // Build a command string which looks like "browser1 "url" || browser2 "url" ||..." StringBuffer cmd = new StringBuffer(); for (int i=0; i<browsers.length; i++) cmd.append( (i==0 ? "" : " || " ) + browsers[i] +" \"" + faq + "\" "); @@ -68,8 +66,7 @@ public static void openOTRS() { try { if (os.indexOf( "Win" ) >= 0) { - - // this doesn't support showing urls in the form of "page.html#nameLink" + rt.exec( "rundll32 url.dll,FileProtocolHandler " + otrs); } else if (os.indexOf( "Mac" ) >= 0) { @@ -78,12 +75,9 @@ public static void openOTRS() { } else if (os.indexOf( "nix") >=0 || os.indexOf( "nux") >=0) { - // Do a best guess on unix until we get a platform independent way - // Build a list of browsers to try, in this order. String[] browsers = {"epiphany", "firefox", "mozilla", "konqueror", "netscape","opera","links","lynx"}; - // Build a command string which looks like "browser1 "url" || browser2 "url" ||..." StringBuffer cmd = new StringBuffer(); for (int i=0; i<browsers.length; i++) cmd.append( (i==0 ? "" : " || " ) + browsers[i] +" \"" + otrs + "\" "); |
