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.

AI-Assisted Feature Flags and Experiments

How We Turned a Hackathon Idea Into a Production-Ready MCP Server

See how DevCycle turned a hackathon project into a game-changing feature flag MCP server for AI coding agents.

Learn More

Top comments (0)

Heroku

Tired of jumping between terminals, dashboards, and code?

Check out this demo showcasing how tools like Cursor can connect to Heroku through the MCP, letting you trigger actions like deployments, scaling, or provisioning—all without leaving your editor.

Learn More

šŸ‘‹ Kindness is contagious

Explore this practical breakdown on DEV’s open platform, where developers from every background come together to push boundaries. No matter your experience, your viewpoint enriches the conversation.

Dropping a simple ā€œthank youā€ or question in the comments goes a long way in supporting authors—your feedback helps ideas evolve.

At DEV, shared discovery drives progress and builds lasting bonds. If this post resonated, a quick nod of appreciation can make all the difference.

Okay