added real "open with" support

feature/settings-window
Michael Ochmann 3 years ago
parent 9457f156c8
commit 1c2a800e65
  1. 2
      src/Ation.js

@ -28,7 +28,7 @@ class Ation {
app.whenReady().then(async () => { app.whenReady().then(async () => {
if (this.fileToOpen) if (this.fileToOpen)
dialog.showMessageBox(this.windowManager.mainWindow, {message : this.fileToOpen}); this.openFile(this.fileToOpen, true);
protocol.registerFileProtocol("slideimg", (request, callback) => { protocol.registerFileProtocol("slideimg", (request, callback) => {
const uri = request.url.replace(/^slideimg:\/\//, ""); const uri = request.url.replace(/^slideimg:\/\//, "");
const extension = path.extname(uri).replace(/^\./, ""); const extension = path.extname(uri).replace(/^\./, "");

Loading…
Cancel
Save