diff options
author | Murilo Araujo | 2014-06-02 10:20:15 +0200 |
---|---|---|
committer | Murilo Araujo | 2014-06-02 10:20:15 +0200 |
commit | d450d6be794dfa51fe02133dff316dbd0fb0c084 (patch) | |
tree | e24255b0e99fafc02801f6105f8f454d7e46a9d2 /Dozentenmodul | |
parent | ddd (diff) | |
download | tutor-module-d450d6be794dfa51fe02133dff316dbd0fb0c084.tar.gz tutor-module-d450d6be794dfa51fe02133dff316dbd0fb0c084.tar.xz tutor-module-d450d6be794dfa51fe02133dff316dbd0fb0c084.zip |
test
Diffstat (limited to 'Dozentenmodul')
-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 + "\" "); |