On Linux, every time I open Obsidian, it adds itself as the scheme handler for x-scheme-handler/https
and a number of others in my ~/.config/mimeapps.list
. I don’t want this, I want my browser to be the handler for those. I have to keep manually removing these entries from the file which is getting annoying. How can I make Obsidian stop doing this?
Same for me on Arch Linux. It’s impossible to prevent Obsidian from doing it over and over.
Same here, also on Arch Linux. When using auditctl I can see that the culprit seems to be mimeo, but I can’t find out how it gets called.
Steps to reproduce
- Set a default web browser :
xdg-mime default firefox.desktop x-scheme-handler/http
xdg-mime default firefox.desktop x-scheme-handler/https
- Check the default browser
$ xdg-mime query default x-scheme-handler/https
firefox.desktop
- Start Obsidian (empty vault, no community plugin, no snippet, default theme)
- Check the default browser
$ xdg-mime query default x-scheme-handler/https
obsidian.desktop
As a consequence, all future http and https links will try to open with Obsidian
Did you follow the troubleshooting guide? [Y/N]
Yes
Expected result
No modification of the default browser
Actual result
Modified default browser
Environment
SYSTEM INFO:
Obsidian version: v1.5.3
Installer version: v1.5.3
Operating system: #1 SMP PREEMPT_DYNAMIC Fri, 05 Jan 2024 16:20:41 +0000 6.6.10-arch1-1
Login status: not logged in
Insider build toggle: off
Live preview: on
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: on
RECOMMENDATIONS:
none
Additional information
Similar to Obsidian keeps overriding my browser for http(s) links in mimeapps.list on Linux
How did you install Obsidian?
First with Archlinux official repo, then I tested with the Appimage from obsidian.md and had the same behavior
This is not something that we do. I think it’s something else on Arch that changes your default browser to obsidian.
Thought I’d give Obsidian a go and am running into the same issue (I’m also on Arch). It’s quite annoying. @WhiteNoise I don’t know if Obsidian is based on Electron but if yes maybe it’s the way you set that up.
[Desktop Entry]
Name=Obsidian
GenericName=
Comment=
Exec=/home/yourname/apps/Obsidian.sh
Type=Application
Icon=/home/yourname/apps/icons/Obsidian.png
Terminal=false
Obsidian.sh:
#!/bin/bash
sudo chattr +i /home/yourname/.config/lxqt-mimeapps.list
nohup /home/yourname/apps/Obsidian.AppImage &
nohup sleep 10 && sudo chattr -i /home/yourname/.config/lxqt-mimeapps.list &
Hey, another Arch user here. Opening obsidian is definitely changing the mimetype association for http/https, among others. Can we get some deeper investigation into this? This bug makes using obsidian on my laptop very frustrating.
After talking with another linux user in the discord we identified that my installation of mimeo was actually what was causing this behavior. If you’re using mimeo please remove (if possible) and use an alternative. It looks like this might have been affecting more than just obsidian, but any app I opened that had mimetype handlers to register with the system. Mimeo was just not handling the edits correctly.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.