docs: Fix the database path on Linux (and BSD) (#32072)

Updated to reflect the logic in
https://github.com/zed-industries/zed/blob/main/crates/paths/src/paths.rs.

Release Notes:

- N/A
This commit is contained in:
Martin Pool 2025-06-04 11:00:27 -07:00 committed by GitHub
parent 4ac67ac5ae
commit 52770cd3ad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,7 +3,7 @@
Zed creates local SQLite databases to persist data relating to its workspace and your projects. These databases store, for instance, the tabs and panes you have open in a project, the scroll position of each open file, the list of all projects you've opened (for the recent projects modal picker), etc. You can find and explore these databases in the following locations:
- macOS: `~/Library/Application Support/Zed`
- Linux: `~/.local/share/Zed`
- Linux and FreeBSD: `~/.local/share/zed` (or within `XDG_DATA_HOME` or `FLATPAK_XDG_DATA_HOME`)
- Windows: `%LOCALAPPDATA%\Zed`
The naming convention of these databases takes on the form of `0-<zed_channel>`: