mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
yeargh
This commit is contained in:
+11
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user