mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Use OS shell for ShellTool on Electron
This commit is contained in:
17 files changed
+1334
-32
No files matched your search
@@ -26,4 +26,9 @@ contextBridge.exposeInMainWorld('electron', {
|
||||
readlink: (path) => ipcRenderer.invoke('fs:readlink', path),
|
||||
symlink: (target, path) => ipcRenderer.invoke('fs:symlink', target, path),
|
||||
},
|
||||
|
||||
// Shell API - execute real shell commands
|
||||
shell: {
|
||||
exec: (command, cwd) => ipcRenderer.invoke('shell:exec', command, cwd),
|
||||
},
|
||||
});
|
||||
Reference in new issue
Block a user