You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Flatpak is a package manager that installs applications in a sandbox, which is great for developers as they can package their applications with their dependencies without having them missing or conflicting with the dependencies of other applications but for extensions it may be painful as there is no way for users to install d2 package inside the sandbox. Even tho it is possible to share directories with the sandbox, common binary locations like /bin or /usr/binare blacklisted and cannot be shared from the host to the sandbox.
The solution would be to use flatpak-spawn and run flatpak spawn --host /usr/bin/d2 within the sandbox instead of plain d2, it would be nice if this plugin allowed in the settings to provide a custom executable instead of just the path. Looking at the code I didn't found any way to do that currently, but it could be achieved.
Workaround
In the meantime I copied the d2 executable into the sandbox with this command, however it will get removed the next time Obsidian gets updated.
Flatpak is a package manager that installs applications in a sandbox, which is great for developers as they can package their applications with their dependencies without having them missing or conflicting with the dependencies of other applications but for extensions it may be painful as there is no way for users to install
d2
package inside the sandbox. Even tho it is possible to share directories with the sandbox, common binary locations like/bin
or/usr/bin
are blacklisted and cannot be shared from the host to the sandbox.The solution would be to use flatpak-spawn and run
flatpak spawn --host /usr/bin/d2
within the sandbox instead of plaind2
, it would be nice if this plugin allowed in the settings to provide a custom executable instead of just the path. Looking at the code I didn't found any way to do that currently, but it could be achieved.Workaround
In the meantime I copied the
d2
executable into the sandbox with this command, however it will get removed the next time Obsidian gets updated.The text was updated successfully, but these errors were encountered: