Rework setsid usage

This commit is contained in:
crschnick 2024-03-27 13:28:13 +00:00
parent baee77d47f
commit 7e8d31dd3c
2 changed files with 0 additions and 25 deletions

View file

@ -1,23 +0,0 @@
package io.xpipe.app.core.check;
import com.sun.jna.Function;
import io.xpipe.app.issue.ErrorEvent;
import io.xpipe.app.issue.TrackEvent;
import io.xpipe.core.process.OsType;
public class AppSidCheck {
public static void check() {
if (OsType.getLocal().equals(OsType.WINDOWS)) {
return;
}
try {
var func = Function.getFunction("c", "setsid");
func.invoke(new Object[0]);
TrackEvent.info("Successfully set process sid");
} catch (Throwable t) {
ErrorEvent.fromThrowable(t).omit().handle();
}
}
}

View file

@ -6,7 +6,6 @@ import io.xpipe.app.core.*;
import io.xpipe.app.core.check.AppAvCheck;
import io.xpipe.app.core.check.AppCertutilCheck;
import io.xpipe.app.core.check.AppShellCheck;
import io.xpipe.app.core.check.AppSidCheck;
import io.xpipe.app.ext.ActionProvider;
import io.xpipe.app.issue.TrackEvent;
import io.xpipe.app.prefs.AppPrefs;
@ -50,7 +49,6 @@ public class BaseMode extends OperationMode {
AppPrefs.initLocal();
AppCertutilCheck.check();
AppAvCheck.check();
AppSidCheck.check();
LocalShell.init();
AppShellCheck.check();
XPipeDistributionType.init();