This commit is contained in:
benfry
2007-06-26 03:14:19 +00:00
parent 02c509a150
commit 6267dabac3
+11 -2
View File
@@ -763,8 +763,17 @@ public class Base {
if (Base.isWindows() || Base.isMacOS()) return true;
//gnome-open, kde-open
if (Preferences.getString("
Process p = Runtime.getRuntime.exec(new String[] { "gnome-open" });
if (Base.isLinux()) {
if (Preferences.get("launcher.linux") != null) {
return true;
}
try {
Process p = Runtime.getRuntime().exec(new String[] { "gnome-open" });
int result = p.waitFor();
System.out.println("result");
} catch (Exception e) { }
}
return false;
}