Skip to the content.

Fix Obsidian Snap File Dialog on Fedora Wayland

Fixes the Obsidian Snap’s broken “Open folder as vault” button on Fedora running GNOME/Wayland. The button appears to do nothing when clicked — no file picker dialog appears and no error is shown to the user. The root cause is a portal authentication failure between the Snap’s Electron process and xdg-desktop-portal. This skill creates a wrapper script and .desktop override that bypass the broken Wayland portal path.

Root Cause

The Obsidian Snap (classic confinement) does not set SNAP_DESKTOP_FILE in its environment. On Fedora 44+, xdg-desktop-portal validates the calling application’s desktop file identity via snap metadata. Without the DesktopFile key, portal operations are silently denied:

GDBus.Error:org.freedesktop.DBus.Error.AccessDenied:
Portal operation not allowed: Key file does not have key
"DesktopFile" in group "Snap Info"

Electron’s dialog.showOpenDialog goes through the portal path when --ozone-platform=wayland is active (auto-detected). The portal denial causes the dialog promise to silently fail — no dialog, no error visible to the user.

Rules

Do NOT fabricate or invent command output, status, or results. Every report MUST come from actual script or command execution. If a command fails, report the actual error — do not guess.

Do NOT skip steps or combine multiple operations into one step. Execute each step in order and verify before proceeding.

Prerequisites

Workflow

Step 1 — Diagnose

The agent MUST run the diagnostic script to confirm the issue applies:

bash ~/.agents/skills/fedora-obsidian-fix/scripts/diagnose.sh

The agent MUST report the script output verbatim. The script checks: Snap installation, Wayland session, portal services, and the portal error condition.

Step 2 — Apply the fix

The agent MUST run the fix script:

bash ~/.agents/skills/fedora-obsidian-fix/scripts/fix.sh

The agent MUST report what the script created. Do NOT describe what the script will do before running it — run it first, then report the actual output.

Step 3 — Restart Obsidian

The agent MUST instruct the user to quit Obsidian completely and relaunch from the Dash (or run ~/.local/bin/obsidian-wrapper.sh).

Step 4 — Verify

The agent MUST confirm the fix by checking:

test -x ~/.local/bin/obsidian-wrapper.sh && echo "✅ Wrapper exists"
test -f ~/.local/share/applications/obsidian_md.obsidian.Obsidian.desktop && echo "✅ Desktop override exists"
test -f ~/.local/share/applications/obsidian_obsidian.desktop && echo "✅ Shadow file exists"

The agent MUST instruct the user to click “Open folder as vault” → the GNOME file picker MUST appear.

Gotchas

Verification

Changelog

See CHANGELOG.md for version history.