screenpipe icon indicating copy to clipboard operation
screenpipe copied to clipboard

[bug] Obsidian vault path not saving

Open eddie-rowe opened this issue 11 months ago • 3 comments

describe the bug When attempting to set the value ( /Users/my.name/Repos/obsidian )of my obsidian vault path via browser or app, it:

  1. Successfully finds my existing obsidian vaults.
  2. Successfully sets the path in the field.
  3. I am able to successfully save the settings.

However, when I reload the Obsidian settings app/browser page or use the directory selector, it defaults back to "obsidian" in the path field and reports "no obsidian vault found in path or parent directories".

system info

  • os: e.g. macos 15.3.1
  • screenpipe version: 0.44.1

additional context

Relevant Logs: [2m2025-05-06T16:34:28.804979Z[0m [31mERROR[0m [2mscreenpipe_core::pipes[0m[2m:[0m [obsidian] failed to find vault root: Error: could not find obsidian vault root (.obsidian folder) [2m2025-05-06T16:34:28.805100Z[0m [32m INFO[0m [2mscreenpipe_core::pipes[0m[2m:[0m [obsidian] at (.next/server/app/api/log/route.js:62:9660) [2m2025-05-06T16:34:28.805113Z[0m [33m WARN[0m [2mscreenpipe_core::pipes[0m[2m:[0m [obsidian] at processTicksAndRejections (null)

Screenshots:

Image Image Image

eddie-rowe avatar May 06 '25 21:05 eddie-rowe

Same here. Furthermore, test log generation says obsidian path not configured and test analyze activity returns an error: failed to generate analysis. The latter due to the obsidian path not being configured (according to the dev tools).

Image

maxonetiq avatar May 26 '25 14:05 maxonetiq

Also noticed some differences between the "web" and "app" view as one required permission to access directories. Hope that helps, bug definitely gets in the way of using this. Any workarounds?

shaunofneuron avatar Jul 07 '25 17:07 shaunofneuron

I can confirm this bug. I've identified the root cause and a working workaround.

Root Cause: When saving the Obsidian vault path through the UI, the application is only storing the folder name (e.g., "Obsidian Vault") instead of the full absolute path (e.g., "/Users/username/PKM"). This causes the vault to not be found on reload.

Affected File: ~/Library/Application Support/screenpipe/store.bin (on macOS)

Workaround:

  1. Close screenpipe completely
  2. Edit the store.bin file and find these two lines:
    "customSettings.obsidian.customSettings.obsidian.vaultPath": "Obsidian Vault",
    
    and
    "customSettings.obsidian.vaultPath": "Obsidian Vault",
    
  3. Replace both with your full absolute path:
    "customSettings.obsidian.customSettings.obsidian.vaultPath": "/Users/your-username/path/to/vault",
    
    and
    "customSettings.obsidian.vaultPath": "/Users/your-username/path/to/vault",
    
  4. Save the file and restart screenpipe

Suggested Fix: The vault path save logic should store the absolute path returned from the directory picker, not just the folder name. The issue appears to be in how the settings are being serialized when saved.

System Info:

  • OS: macOS 15.3.1
  • screenpipe version: 0.44.1

kraigeisenman avatar Oct 03 '25 19:10 kraigeisenman