mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-25 09:00:26 +00:00
Rework setsid usage
This commit is contained in:
parent
baee77d47f
commit
7e8d31dd3c
2 changed files with 0 additions and 25 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue