Skip to content

Commit 06bac33

Browse files
authored
handle second-instance events (auto-generated new window action on gnome) (#2998)
1 parent 73b2fb6 commit 06bac33

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

emain/emain.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,10 @@ async function appMain() {
384384
electronApp.quit();
385385
return;
386386
}
387+
electronApp.on("second-instance", (_event, argv, workingDirectory) => {
388+
console.log("second-instance event, argv:", argv, "workingDirectory:", workingDirectory);
389+
fireAndForget(createNewWaveWindow);
390+
});
387391
try {
388392
await runWaveSrv(handleWSEvent);
389393
} catch (e) {

0 commit comments

Comments
 (0)