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" },