From f909fe6670eeadcff1efa9f10cd9b2e17a77134b Mon Sep 17 00:00:00 2001 From: Roman Date: Fri, 13 Aug 2021 22:06:01 +0100 Subject: [PATCH] Trying to get it to work on Linux --- packages/app-desktop/ElectronAppWrapper.ts | 4 ++-- packages/app-desktop/package.json | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/app-desktop/ElectronAppWrapper.ts b/packages/app-desktop/ElectronAppWrapper.ts index 97fb81f33a..06c2149daa 100644 --- a/packages/app-desktop/ElectronAppWrapper.ts +++ b/packages/app-desktop/ElectronAppWrapper.ts @@ -328,8 +328,8 @@ export default class ElectronAppWrapper { win.focus(); if (process.platform !== 'darwin') { const url = argv.find((arg) => arg.startsWith('joplin://')); - if (!!url) this.onUrl(url) - } + if (url) this.onUrl(url); + } }); return false; diff --git a/packages/app-desktop/package.json b/packages/app-desktop/package.json index 4e8e9c9ed2..5f48b62a45 100644 --- a/packages/app-desktop/package.json +++ b/packages/app-desktop/package.json @@ -83,7 +83,8 @@ "icon": "../../Assets/LinuxIcons", "category": "Office", "desktop": { - "Icon": "joplin" + "Icon": "joplin", + "MimeType": "x-scheme-handler/joplin;" }, "target": "AppImage" },