improve native isolation

This commit is contained in:
olcxja 2026-10-07 08:26:57 +02:00
commit 9748b98163
15 changed files with 341 additions and 95 deletions

View file

@ -15,6 +15,8 @@ function singleSlot(channel) {
}
const onImportProgress = singleSlot('import:progress')
// "Open with" into an isolated app: the document is copied first
const onHandoffProgress = singleSlot('handoff:progress')
// "Open with PLWL": files handed over via --open (Exec %f).
const onOpenWith = singleSlot('openwith:file')
// one sync (and one pending consent request, enforced server-side) at a time
@ -84,6 +86,7 @@ contextBridge.exposeInMainWorld('plwl', {
shellOpenPath: p => ipcRenderer.invoke('shell:openPath', p),
shellShowItemInFolder: p => ipcRenderer.invoke('shell:showItemInFolder', p),
onImportProgress: onImportProgress,
onHandoffProgress: onHandoffProgress,
onGamesChanged: cb => ipcRenderer.on('games:changed', () => cb()),
lansyncGet: () => ipcRenderer.invoke('lansync:get'),
lansyncDevices: () => ipcRenderer.invoke('lansync:devices'),