Custom URI link not working (.desktop file)


This is what I get when trying to open obsidian:// protocol. Installing Obsidian URI (guide).

I used appimagelauncher to integrate Obsidian app into my system.

Judging from this post issue probably is related to MimeType= field inside .desktop file.
AppImageLauncher didn’t add anything to MimeType file its just empty.

appimagekit_8fbd98b6c46b129329185da71d885be3-Obsidian.desktop
[Desktop Entry]
Actions=Remove;
Categories=Office;
Comment[en_US]=Obsidian
Comment=Obsidian
Exec=/home/juris/Applications/Obsidian-0.12.10_89a9e270c0be5ede4b956e73184b8857.AppImage --no-sandbox %U
GenericName[en_US]=
GenericName=
Icon=appimagekit_8fbd98b6c46b129329185da71d885be3_obsidian
MimeType=
Name[en_US]=Obsidian
Name=Obsidian
Path=
StartupNotify=true
StartupWMClass=obsidian
Terminal=false
TerminalOptions=
TryExec=/home/juris/Applications/Obsidian-0.12.10_89a9e270c0be5ede4b956e73184b8857.AppImage
Type=Application
X-AppImage-Identifier=8fbd98b6c46b129329185da71d885be3
X-AppImage-Old-Icon=obsidian
X-AppImage-Old-Name=Obsidian
X-AppImage-Version=0.12.10
X-AppImageLauncher-Version=2.2.0 (git commit 0f91801), built on 2021-07-27 18:08:00 UTC
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=

I tried to edit .desktop file and add MimeType=x-scheme-handler/obsidian; that didn’t change anything.

How to proceed?

I tried to follow this post

My mimeapps.list file was empty so I added this
x-scheme-handler/obsidian=appimagekit_8fbd98b6c46b129329185da71d885be3-Obsidian.desktop

5 - Update the mime database of the current user , with the command line
$ update-mime-database $HOME/.local/share/mime

So I did

[juris@juris-aspiree1571 ~]$ update-mime-database $HOME/.local/share/mime
Directory '/home/juris/.local/share/mime/packages' does not exist!
[juris@juris-aspiree1571 ~]$

Didn’t work.

Found solution, posted in other forum, here:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.