[Linux] snap version doesn't allow file access outside home folder

Steps to reproduce

  1. install the snap version of obsidian on linux
  2. try to open files on a drive mounted in /media

Expected result

able to open files from external drives

Actual result

can’t access files outside from /home
(the same files can be opened if you use the appimage version of obsidian)

Environment

  • Operating system: Linux Mint 20, Cinnamon DE
  • Obsidian version: latest (0.7.6)

Additional information

this seems to be caused by the snap security model and can be fixed by enabling the removable-media interface https://snapcraft.io/docs/removable-media-interface

thanks for the report

Per https://github.com/electron-userland/electron-builder/issues/4252#issuecomment-629314271

I will add the “removable-media” plug in the next release, though you may have to run an additional command to connect it.