Skip to main content

default_db_path

Function default_db_path 

Source
pub fn default_db_path() -> Result<PathBuf>
Expand description

Default location of Cursor’s local state database. This is Cursor’s own per-OS convention (same one every VS Code-family app uses for its user data), not ai-usagebar’s XDG cache — conveniently identical to what directories::BaseDirs::config_dir() already resolves on every platform:

  • Linux: ~/.config
  • macOS: ~/Library/Application Support
  • Windows: %APPDATA% (Roaming)