Fix install relaunch

This commit is contained in:
crschnick committed 2026-09-06 08:15:35 +00:00
1 parent 196aac2179
commit 0d0c123bfe
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));
}
}