DEV Community

Piotr
Piotr

Posted on • Originally published at garden.piotrk.it on

Setting obsidian-shellcommands plugin on flatpak

Running Obsidian from flatpak comes with its own set of problems. One of them is that Obsidian is ran in sandbox environment - which makes sense when we consider security, but to be frank - it’s annoying when I have to do something non-standard.

I wanted to run this command from obsidian (it updates my git repo):

npx quartz sync --no-pull
Enter fullscreen mode Exit fullscreen mode

but after adding it to there:

I was welcomed with an error that it couldn’t find npx command, which makes sense - I’m using NVM to manage node.

Tip

To make it work I had to make sure that npx was added to Obsidians $PATH variable and obsidian has permissions to this directory.

I used Flatseal to:

  1. Give Obsidian permissions to /home/$USER directory - that’s where bin/ of NVM resides
  2. Add NVM to $PATH:

I also had to update the script to execute from the git root:

cd "$(git rev-parse --show-toplevel)" && npx quartz sync --no-pull
Enter fullscreen mode Exit fullscreen mode

Now running Ctrl + P and typing Update page updates the page directly from obsidian.

ACI image

ACI.dev: The Only MCP Server Your AI Agents Need

ACI.dev’s open-source tool-use platform and Unified MCP Server turns 600+ functions into two simple MCP tools on one server—search and execute. Comes with multi-tenant auth and natural-language permission scopes. 100% open-source under Apache 2.0.

Star our GitHub!

Top comments (0)

Quickstart image

Django MongoDB Backend Quickstart! A Step-by-Step Tutorial

Get up and running with the new Django MongoDB Backend Python library! This tutorial covers creating a Django application, connecting it to MongoDB Atlas, performing CRUD operations, and configuring the Django admin for MongoDB.

Watch full video →

👋 Kindness is contagious

DEV is better (more customized, reading settings like dark mode etc) when you're signed in!

Okay