From 1c2a800e655682cd676a0c052e4e65a651ac83f2 Mon Sep 17 00:00:00 2001 From: Michael Ochmann Date: Tue, 4 Oct 2022 11:07:47 +0200 Subject: [PATCH] added real "open with" support --- src/Ation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ation.js b/src/Ation.js index 337a7cf..703e38f 100644 --- a/src/Ation.js +++ b/src/Ation.js @@ -28,7 +28,7 @@ class Ation { app.whenReady().then(async () => { if (this.fileToOpen) - dialog.showMessageBox(this.windowManager.mainWindow, {message : this.fileToOpen}); + this.openFile(this.fileToOpen, true); protocol.registerFileProtocol("slideimg", (request, callback) => { const uri = request.url.replace(/^slideimg:\/\//, ""); const extension = path.extname(uri).replace(/^\./, "");