mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-10-07 15:41:30 +00:00
Fix install relaunch
This commit is contained in:
2 files changed
+5
-8
No files matched your search
@@ -29,10 +29,9 @@ public class AppRestart {
|
||||
var b = CommandBuilder.of().addFile(exec).add("open").addAll(arguments);
|
||||
return b.buildSimple();
|
||||
} else {
|
||||
var exe = loc.getDaemonExecutablePath();
|
||||
var b = CommandBuilder.of().addFile(exe).addAll(arguments);
|
||||
var async = dialect.launchAsync(b, true);
|
||||
return async.buildSimple();
|
||||
var exec = loc.getCliExecutablePath();
|
||||
var b = CommandBuilder.of().add(ShellDialects.isPowershell(dialect) ? "&" : null).addFile(exec).add("open").addAll(arguments);
|
||||
return b.buildSimple();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -153,8 +153,7 @@ public class AppInstaller {
|
||||
file,
|
||||
logFile,
|
||||
args,
|
||||
AppRestart.getBackgroundRestartCommand(
|
||||
AppProperties.get().getDataDir(), ShellDialects.CMD));
|
||||
AppRestart.getTerminalRestartCommand(ShellDialects.CMD));
|
||||
}
|
||||
|
||||
private String getPowershellCommand(String file, String logFile, boolean uninstall, boolean systemWide) {
|
||||
@@ -190,8 +189,7 @@ public class AppInstaller {
|
||||
file,
|
||||
logFile,
|
||||
startProcessProperty,
|
||||
AppRestart.getBackgroundRestartCommand(
|
||||
AppProperties.get().getDataDir(), ShellDialects.POWERSHELL));
|
||||
AppRestart.getTerminalRestartCommand(ShellDialects.POWERSHELL));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user