Warn when creating a vault inside the obsidian program/executable folder or the folder itself

Use case or problem

There have been some users discord that lose their data when they update the installer and their vault is inside the program folder.

Proposed solution

Show a warning when its detected that the folder is inside program folder or the program folder itself, just like when vim mode is enabled or a file is deleted.
Detection (and warning) don’t have to be sophisticated as the users that don’t know the consequences of doing this likely have a standard installation.

Workaround

don’t this/backup your data? Users should be expected know this, but should still be warned regardless.

I strongly support this (if it isn’t already a feature; I haven’t tested). It’s not a lot of people, but the ones who do it are losing their data (because they usually don’t have backups). And there has been a little rash of them lately instead of the usual once in a long while.

I don’t know what moves people to do this, since it requires going off the beaten path.

I’ve been meaning to post a FR for this for a while, so thank you for this and for reminding me.

On Windows, I’ve switched over to installing Obsidian for all users from 1.14.x and the Obsidian.exe is now in C:\Program Files\.

I previously only installed it in my main account and it lived in C:\Users\<username>\AppData\Roaming\obsidian\ if I recall correctly (possibly it was \AppData\Local\...).

In any event, AppData seems an odd place to manually choose, and Windows File Explorer doesn’t show that folder by default, but folks are ending up with their vault(s) stored there.

Obsidian has a mechanism for detecting if vaults are in iCloud Drive or OneDrive; perhaps add a warning toast that can’t be easily dismissed if Obsidian sees a vault is in AppData somewhere.

I don’t understand under which circumstances people create a vault in C:\Users\<username>\AppData\Local\Programs\Obsidian.

You really need to go out of your way to do so. There’s something that we are missing here. How did this happen?

Some folks clearly put their vault in the default installation folder, and I remember one person when asked said they thought keeping everything together was a good idea. But in other cases, the person said only that it was the installation folder and not where. I’m getting the impression some are using the same folder on detachable drives.

Not confirmed, but situations similar to the first two below gave me the impression. Maybe other patterns are hidden in there.

A People’s History of creating vaults in the installation folder, 2026

Another possible case here with the vaults and app in the same location on a separate drive/volume:

Breaking the separate-volume streak, a person whom superlee helped out today was “extremely sure” they stored the vault in the presented location but had put it in the installation folder, primary drive.

https://discord.com/channels/686053708261228577/694233507500916796/1566547186861342772

some more recent cases

like it could be as simple as

// Source - https://stackoverflow.com/a/45242825
// Posted by Ilya Kozhevnikov, modified by community. See post 'Timeline' for change history
// Retrieved 2026-11-01, License - CC BY-SA 4.0
const path = require('path');
const dir = app.vault.adapter.basePath;
const parent = process.execPath;
const relative = path.relative(parent, dir);
if (relative && relative && !relative.startsWith('..') && !path.isAbsolute(relative)) {
// create notice
}

I’ll check an old x64 only installer if I get a chance, but my recollection (which could be totally wrong) was that the old separate Windows installers didn’t let you choose an install location for the .exe, but now that it’s a combined installer you can choose a location if installing for all users. Then folks create their vaults there.

The option to choose a location may be a part of the increase in this happening?

This is separate from the x86 or combo installer. At some point we added the option to pick the installation folder, mostly for business/corporate users.

Will be implemented in v1.15.1. ETA unknown.