Documentation
¶
Overview ¶
Package config resolves where notesd keeps its files (docs/design/overview.md#operational-notes).
Index ¶
Constants ¶
const AppID = "org.frostyard.Frostnotes"
AppID is the reverse-DNS application ID (frostyard/core ADR-0016).
const LockFile = "notesd.lock"
LockFile is the file in DataDir that the one notesd of the directory holds a lock on (flock), from before it opens the database until it exits.
Variables ¶
This section is empty.
Functions ¶
func DefaultSocket ¶
DefaultSocket is notesd's socket when FROSTNOTES_SOCKET is not set: $XDG_RUNTIME_DIR/frostnotes/notesd.sock. In the Flatpak (FLATPAK_ID is AppID) it is $XDG_RUNTIME_DIR/app/org.frostyard.Frostnotes/frostnotes/notesd.sock: Flatpak shares $XDG_RUNTIME_DIR/app/<id> between every sandbox of the app, and the rest of $XDG_RUNTIME_DIR is private to each sandbox, so the app and notesd (and notesctl) meet only there (docs/adr/0031-the-desktop-app-ships-as-a-flatpak-with-its-own-notesd.md). app/src-tauri/src/paths.rs must stay in step with this function.
Types ¶
type Paths ¶
type Paths struct {
DataDir string // database and blob store; must be on a local filesystem
Socket string // the RPC socket
DB string // DataDir/notesd.db
Blobs string // DataDir/blobs
}
Paths are notesd's file locations. Vaults live wherever the user keeps them; nothing here is inside a vault (ADR-0003).