Have Obsidian be the handler of .md files / Add ability to use Obsidian as a markdown editor on files outside vault (file association)

Thanks, this script is great.
Do you know how to add an icon?
Never mind, I just had to add this line to
~/.local/share/applications/open-in-obsidian.sh.desktop :

Icon=/home/{your username here}/AppImages/.icons/obsidian.png