Linking to a specific note

Operating system

Windows

Joplin version

2.11.11

Desktop version info

Joplin 2.11.11 (prod, win32)

Client ID: ee9cc7889fd64490bec4d336b6175bd6
Sync Version: 3
Profile Version: 43
Keychain Supported: Yes

Revision: 6886f6f

What issue do you have?

Is there a way to link to a specific Note from outside Joplin? What I'd like to do is have the equivalent of a shortcut in Windows (link to another file or a web etc.) that when launched opened Joplin on the desired Note. Shortcut functionality to launch a Joplin Note would be ideal (I'm not sure that is possible to modify shortcut behaviour!) or a command line launch,
I tried searching for command line options and found that they seem to be undocumented. I'm thinking something like joplin --note=XYZ where XYZ is the ID of the note from Note Properties.
Any other way of creating a link in a file system to launch a note would be equally acceptable - doesn't have to be a command line option or shortcut but they are two obvious ways that I have thought of.

If you right click on a note in the note list you can select the option "Copy external link". This saves a shorcut on your clipboard in the format joplin://x-callback-url/openNote?id=aedc6285e9d34cb2864e9d5b76511f45. When this link is followed it opens Joplin at the selected note.

The version of Joplin you are using is nearly two years old and I am not sure when this feature was introduced. So you may have to upgrade Joplin to a later version if this option is not present in your client.

EDIT: It looks like callback URLs were added in Joplin 2.5.4 so you should have the option in your existing client. However I believe that improvements to the functionality and security of callback links have been made since then.

3 Likes

Joplin 3.3.3 | Windows 11
I'm using a portable version at this moment.
From this one I copied the external link of a note.


On Wiindows I created a shortcut with this link.



image
But... When I click on it a new instance of Joplin 3.3.3 completly empty is starting with no trace of the note linked !!!

Don't worry : the normal NOT empty instance is still there...

You are using the portable version but do you also have the desktop version installed on your system?

Not at all...
By the way : the portable version


is called "Joplin for Desktop" too...

[CTRL] [ALT] [SUPPR]:

From my limited testing the callback facility does not work with the Joplin Portable desktop version if the client has been fully closed down. It will only work if the client is running. With the Installed desktop version it works whether the client is running or not. I guess that this is because a portable version, being portable, should not register itself with the host system.

With regards to what you are seeing, follow your "DOG food" link to open up the "empty" version of Joplin. Select Tools > Options. The first line of the setting page says: "Notes and settings are stored in:". What path is shown after this?

C:\Users\MY USER NAME.config\joplin-desktop

And from the "normal" joplin : E:\JoplinProfile

Which means that you do have the installable desktop client installed on your system because that is where it stores its data.

So when the portable version is closed and you click your "DOG food" link it opens up the copy of Joplin that is registered with your system to open Joplin links (the installable version). It then passes Joplin the note id to display but as this copy is totally different to the copy used to create the link (the portable version) there is no note with that ID to display.

I never installed the 3.3.3 desktop version on this computer. It's the portable version who is responsible of the appearance of this instance. Mystery of life... LOL

If you haven't got a version (any version) of Joplin installed on your system it is not so much a "mystery of life" as a serious bug. You are suggesting that the portable version can under unknown conditions store note data in the user account files on the host machine when that version is expressly designed not to do so.

The portable version is engineered to store its data in a folder called JoplinProfile located in the same folder as the JoplinPortable.exe file. In your case that is on your "E" drive. The installed version stores its data in a .config\joplin-desktop folder in the logged in user's data folders.

Whilst you may not have installed v3.3.3 could you have installed an earlier version some time ago and forgotten?

Follow your "DOG food" link to open up the "empty" version of Joplin and click Help > About Joplin. This will show the version. Also only an installed version will be listed in Windows under Settings > Apps > Installed Apps.

Yes.
For example the linked note is there:


See (already mentionned above):
image

I don't think so but why not a long long time ago... I'm sure not at 90 % !
BUT : when you use the portable version, there's always files written in the C: path !
For example in my C:\Users\MY USER NAME\AppData\Roaming\Joplin:


It's today !!! And it's still there after a reboot of my computer and two hours after !

See screen capture some posts above. It's 3.3.3 that I have never installed in a desktop version !

No. That screen capture is from when you opened Joplin by clicking the JoplinPortable.exe file to show that in Help > About, Joplin Portable was also named Joplin for Desktop.

You can tell it is from a portable instance as:

  1. There is no keychain support and
  2. There is not a default Backup plugin included

What I was asking was to start Joplin using your "DOG Food" link and display the Help > About for that "empty" copy of Joplin.

This screen capture is from the "Dog Food" not from JoplinPortable. That's why I put it there ! A mystery...

Maybe the explanation (and the confirmation of the portable version limits at this moment) :Multiple instances - #11 by HarSel
I unserstant that the "portable version" is a "desktop version" with little modifications. And since the "new instance" capacity (3.3.3 version), the second instance has the behaviour of a classical desktop version and create something on C: !!! Something completly empty !
So we musn't use linking with 3.3.3 at this moment because it a kind of mess.

Unfortunately, as mentioned in the post that @Steph shared a few days ago (and clarified in the posts referenced within it), this is precisely what happens if Windows runs Joplin.exe rather than JoplinPortable.exe (which, for those unfamiliar, is an app that "simply" extracts the application files, including Joplin.exe, into a temporary folder, and then runs Joplin.exe).

I believe this behaviour (running Joplin.exe rather than JoplinPortable.exe) is to be expected (it also happens with applications released by PortableApps). That is why, among other reasons, with other people we are suggesting to develop a "truly" portable version of Joplin.
Perhaps, the approach suggested in Tentative procedure to make Joplin Portable truly portable on Windows could help with this issue, but I have never tested the procedure being discussed in this thread, so I cannot be sure of that.

1 Like