Skip to content

External links to JoplinPortable actually open a blank temporary instance of Joplin.exe #13851

@dzeleznik

Description

@dzeleznik

Operating system

Windows

Joplin version

3.5.9

Desktop version info

Joplin 3.5.9 (prod, win32)

Device: win32, Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
Client ID: a2f22b33d52b4e94abc8e2289a674c49
Sync Version: 3
Profile Version: 49
Keychain Supported: No
Alternative instance ID: -

Revision: 4afac41

Embed Search: 2.0.0
Favorites: 1.3.2
Freehand Drawing: 3.1.0
Paste as Markdown: 1.1.1

Current behaviour

Whenever JoplinPortable.exe is launched it creates a temporary copy of Joplin.exe in the Windows temp directory. It then updates the registry HKCR\joplin\shell\open\command default value to point to this temp version of Joplin. The result is that an external link to a note using the joplin:// protocol will open this blank instance of Joplin instead of JoplinPortable where the note resides.

Expected behaviour

I would expect that an external joplin:// link will open my copy of JoplinPortable.exe and the referenced note. My current workaround is two steps:

  1. Update the Windows registry so that the HKCR\joplin\shell\open\command points to my copy of JoplinPortable.exe similar to this:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\joplin]
"URL Protocol"=""
@="URL:joplin"

[HKEY_CLASSES_ROOT\joplin\shell]

[HKEY_CLASSES_ROOT\joplin\shell\open]

[HKEY_CLASSES_ROOT\joplin\shell\open\command]
@="\"E:\\Joplin\\JoplinPortable.exe\" \"%1\""
  1. Prevent JoplinPortable from modifying the registry key upon launch by setting the permissions on HKCR\joplin and all its children to read-only for the current user

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIt's a bug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions