More rdp fixes

This commit is contained in:
crschnick
2025-07-22 07:23:53 +00:00
parent 399bcde374
commit 68b93dda29
2 changed files with 8 additions and 0 deletions
@@ -3,6 +3,8 @@ package io.xpipe.app.rdp;
import io.xpipe.app.prefs.ExternalApplicationHelper;
import io.xpipe.app.prefs.ExternalApplicationType;
import io.xpipe.app.process.CommandBuilder;
import io.xpipe.app.storage.DataStorage;
import io.xpipe.app.util.CommandSupport;
import io.xpipe.app.util.LocalShell;
import io.xpipe.core.OsType;
@@ -10,6 +12,8 @@ public class FreeRdpClient implements ExternalApplicationType.PathApplication, E
@Override
public void launch(RdpLaunchConfig configuration) throws Exception {
CommandSupport.isInPathOrThrow(LocalShell.getShell(), getExecutable(), "XFreeRDP", DataStorage.get().local());
var file = writeRdpConfigFile(configuration.getTitle(), configuration.getConfig());
var b = CommandBuilder.of().add(getExecutable())
.addFile(file.toString())
@@ -57,6 +57,8 @@ public class RemminaHelper {
server=%s
password=%s
cert_ignore=1
scale=2
window_maximize=1
"""
.formatted(
configuration.getTitle(),
@@ -88,6 +90,8 @@ public class RemminaHelper {
server=%s
password=%s
colordepth=32
scale=2
window_maximize=1
"""
.formatted(
configuration.getTitle(),