I expect to see the “Allow settings change?” prompt once and have it remember my choice.
Actual result
This prompt appears every single time I open the app. I press “Yes” every time yet still recieve the prompt.
I speculate this is due to Obsidian not properly checking if it already has changed its url scheme handler and attempting to do it every launch, resulting in this annoying bug.
Thanks for the reply! How can I check the installer version? I believe Snapcraft is the “installer”.
I used the 0.10.13 .snap file downloaded from the homepage. I installed it using the command in my original post (sudo snap install obsidian_0.10.13_amd64.snap --dangerous --devmode). I am using a very fresh install of Ubuntu 20.04.
Also having this issue on Ubuntu 18.04.
$ xdg-mime query default x-scheme-handler/obsidian
obsidian_obsidian.desktop
$ xdg-settings get default-url-scheme-handler obsidian
obsidian_obsidian.desktop
Obsidian appears in ~/.config/mimeapps.list.
It doesn’t seem to matter whether I allow or not, I get prompted every time I start Obsidian.
Not that actually. I had an old installation of Obsidian, updated by Obsidian itself, not by the snap engine. So when I reinstalled Obsidian using a new snap, the issue went away.
I have the same problem on Obsidian v0.12.19 freshly installed from the snap image provided on the main website.
Info asked for above:
machine:~$ xdg-mime query default x-scheme-handler/obsidian
obsidian.desktop
machine:~$ xdg-settings get default-url-scheme-handler obsidian
obsidian.desktop
machine:~$ cat ~/.config/mimeapps.list | grep obsidian
x-scheme-handler/obsidian=obsidian.desktop
machine:~$ echo Shows under [Default Applications]
Shows under [Default Applications]
EDIT: I managed to change it by changing the line x-scheme-handler/obsidian=obsidian.desktop by x-scheme-handler/obsidian=obsidian_obsidian.desktop in the file ~/.config/mimeapps.list. Hopefully I did not break anything else by doing that.
╭─ms@ms-arch ~
╰─➤ xdg-settings get default-url-scheme-handler obsidian
xdg-settings: default-url-scheme-handler not implemented for xfce
╭─ms@ms-arch ~
╰─➤ xdg-settings set default-url-scheme-handler obsidian obsidian_obsidian.desktop 1 ↵
xdg-settings: default-url-scheme-handler not implemented for xfce