Yunzi's Blog

Getting Obsidian to work with Firefox on Linux

I've been running Linux since you had to install it from floppy disks. Its rare these days given how smooth everything normally is compared to how it was back 'in the day' I have to debug anything on my desktop environment (work servers are a different story!) but today I did - so documenting for posterity.

I'm testing out a number of tools to smooth my workflow going into the new year and Obsidian is one. I'm late to the party I know. I particularly wanted to be able to cross reference web pages when doing research to installed Obsidian Web Clipper on my Firefox (v143 at the moment) on Fedora Linux. Having got both Obsidian installed (AppImage) and the Firefox plugin I was driven slightly mad when trying to use it - Firefox could'nt handle the obsidian:// protocol - now fair enough this is installed in my own location but the documentation isn't really accurate, talking about registering Firefox protocols and adding entries to about:config. Also that process has changed, but anyway.

First step as outlined correctly in the documentation is to create an obsidian.desktop file. For me this sat in;

/home/yunzi/.local/share/applications

Changing 'yunzi' to your own username.

[Desktop Entry]
Name=Obsidian
Exec=/home/yunzi/Apps/Obsidian-1.10.6.AppImage %u
Terminal=false
Type=Application
Icon=/home/yunzi/Apps/obsidian.png
StartupWMClass=obsidian
X-AppImage-Version=1.10.6
Comment=Obsidian
Categories=Office;
MimeType=x-scheme-handler/obsidian

Note the MimeType as this seemed to make a difference.

Then setting a mime config in ;

/home/yunzi/.config/mimeapps.list

x-scheme-handler/obsidian=obsidian.desktop

Hopefully one day this helps someone else.