URN links format
Hello,
I want to better integrate geneious files with my electronic notes (in Obsidian) using links which directly open certain local file in geneious.
I found out that this should be possible using URNs. An example of my URN is "urn:local:.:1s9-e18dfu9"
I tried
geneious://urn=urn:local:.:1s9-e18dfu9
and other variations but I just can't get the link to work. What is the correct format?
Thank you for your help,
Marie
-
Hi Marie,
The main format which Geneious recognizes was added in version 2021.0.0 and looks like this:
geneious://prime/documents?urn=urn:local:.:5m-cb21167
If you want to link to multiple documents you can separate each "urn=..." with an "&" symbol for example:
geneious://prime/documents?urn=urn:local:.:5m-cb21167&urn=urn:local:.:5v-cb2116d&urn=urn:local:.:5u-cb2116c
Unfortunately some older applications may not consider this format to be a link and allow you to click on it. However copy+pasting the link into a browser such as Google Chrome should work for most operating systems.
1 -
Ahh that would make sense, I don't think we officially support the links on Ubuntu (although we are looking at changing this in the future!).
There is a method you can use to add the geneious:// scheme to the system which when tested does seem to allow the links to work:
Step 1: Create a file with the name and location: ~/.local/share/applications/geneiousurl.desktop, the content of this file should be:
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Exec=Geneious\ Prime %u
Name=geneious‑URL
Comment=geneious‑URL handler
Icon=
Categories=Application;Network;
MimeType=x-scheme-handler/geneious;Step 2 on a terminal, run the command:
sudo update-desktop-database
Step 3 on a terminal, run the command:
xdg-mime default geneiousurl.desktop x-scheme-handler/geneious
After this, the links should now be correctly handled by the operating system
1 -
Hi Tom,
thank you for the reply. However, I found out that this unfortunately wasn't the problem. I have Ubuntu 20.04 and it seems that the geneious:// scheme simply isn't recognized. Even the example of file import from the internet provided in the manual doesn't work for me.
0 -
All good now!
I had to make an additional step of adding Geneious PATH to ~/.profile, now it works.
Thank you for your help!
0
Please sign in to leave a comment.
Comments
4 comments