Feat: add static analytic of code
This commit is contained in:
@@ -33,10 +33,6 @@ public class Linux extends OS {
|
||||
private final String NICE_BINARY_PATH = "nice";
|
||||
private final String ID_COMMAND_INVOCATION = "id -u";
|
||||
|
||||
public Linux() {
|
||||
super();
|
||||
}
|
||||
|
||||
@Override public String name() {
|
||||
return "linux";
|
||||
}
|
||||
@@ -55,7 +51,7 @@ public class Linux extends OS {
|
||||
|
||||
@Override public Process exec(List<String> command, Map<String, String> env_overight) throws IOException {
|
||||
Map<String, String> new_env = new HashMap<String, String>();
|
||||
new_env.putAll(java.lang.System.getenv()); // clone the env
|
||||
new_env.putAll(System.getenv()); // clone the env
|
||||
|
||||
// if Blender is already loading an OpenGL library, don't need to load Blender's default one (it will
|
||||
// create system incompatibilities). If no OpenGL library is found, then load the one included in the binary
|
||||
@@ -200,7 +196,7 @@ public class Linux extends OS {
|
||||
try {
|
||||
// Shutdown the computer waiting delayInMinutes minutes to allow all SheepIt threads to close and exit the app
|
||||
ProcessBuilder builder = new ProcessBuilder("shutdown", "-h", String.valueOf(delayInMinutes));
|
||||
Process process = builder.inheritIO().start();
|
||||
builder.inheritIO().start();
|
||||
}
|
||||
catch (IOException e) {
|
||||
System.err.println(String.format("Linux::shutdownComputer Unable to execute the 'shutdown -h 1' command. Exception %s", e.getMessage()));
|
||||
|
||||
Reference in New Issue
Block a user