mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 07:05:24 +00:00
feat: finish the remote-desktop plugin (B14)
This commit is contained in:
1 parent
0af2c94983
commit
14eb558b85
215 files changed
+30029
-3921
No files matched your search
+1
-4
@@ -645,6 +645,7 @@ const isolatedWindows = createIsolatedWindows({
|
||||
// ctx.desktop.openIsolatedWindow is the one caller today.
|
||||
const BACKEND_REQUEST_HANDLERS = {
|
||||
"open-isolated-window": (payload) => isolatedWindows.open(payload),
|
||||
"launch-native-rdp": (payload) => launchNativeRdp(payload),
|
||||
};
|
||||
|
||||
async function handleBackendRequest(msg) {
|
||||
@@ -1672,10 +1673,6 @@ ipcMain.handle("get-platform", () => {
|
||||
return process.platform;
|
||||
});
|
||||
|
||||
ipcMain.handle("open-native-rdp", (_event, options) =>
|
||||
launchNativeRdp(options),
|
||||
);
|
||||
|
||||
ipcMain.handle("get-embedded-server-status", () => {
|
||||
return {
|
||||
running:
|
||||
|
||||
@@ -30,7 +30,6 @@ contextBridge.exposeInMainWorld("electronAPI", {
|
||||
getPlatform: () => ipcRenderer.invoke("get-platform"),
|
||||
getEmbeddedServerStatus: () =>
|
||||
ipcRenderer.invoke("get-embedded-server-status"),
|
||||
openNativeRdp: (options) => ipcRenderer.invoke("open-native-rdp", options),
|
||||
|
||||
removeAllListeners: (channel) => ipcRenderer.removeAllListeners(channel),
|
||||
isElectron: true,
|
||||
|
||||
Reference in new issue
Block a user