mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-05-29 16:11:03 +00:00
More rdp fixes
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user