This distribution is not officially supported by the Obsidian team.
First add Flathub repository. Then run:
$ flatpak install md.obsidian.Obsidian
Wayland support can be enabled by setting the environment variable OBSIDIAN_USE_WAYLAND=1
either using Flatseal, or the command line, like so:
$ flatpak override --user --env=OBSIDIAN_USE_WAYLAND=1 md.obsidian.Obsidian
Wayland support can also be temporarily enabled for a single run:
$ flatpak run --env=OBSIDIAN_USE_WAYLAND=1 md.obsidian.Obsidian
The pandoc plugin partially works with the bundled pandoc
binary; however, it requires an extension to utilize pdflatex
:
$ flatpak install flathub org.freedesktop.Sdk.Extension.texlive//22.08
This flatpak bundles the gh
binary (the github cli), so use that to login from your distro's command line:
$ flatpak run --command=gh md.obsidian.Obsidian auth login
This flatpak goes into great lengths to provide a nice experience for end users. In order for the Git plugin to work it requires permission to the ssh-auth socket (--socket=ssh-auth
). It also exposes the home directory in the sandbox (required for Drag and Drop operations). If you don't use the Git plugin you can disable the ssh-auth socket permission, e.g. using Flatseal. You can also remove access to the home directory if you want and the flatpak will continue to work, albeit with reduced functionality. In case you do remove access to the homedir, note that in order for things to not break for the Git plugin, --persist=.ssh
flag has been passed and a bind mount to ~/.var/app/md.obsidian.Obsidian/
is created by flatpak, allowing that location to be used for persistent data (but your home directory's .ssh remains unaccessible)