Documentation
¶
Overview ¶
Package paths provides platform-specific directory paths for sensorpanel.
Directory structure varies by platform:
Linux:
- Config: $XDG_CONFIG_HOME/sensorpanel/ (default: ~/.config/sensorpanel/)
- Data: $XDG_DATA_HOME/sensorpanel/ (default: ~/.local/share/sensorpanel/)
- Cache: $XDG_CACHE_HOME/sensorpanel/ (default: ~/.cache/sensorpanel/)
macOS:
- Config: ~/Library/Application Support/sensorpanel/
- Data: ~/Library/Application Support/sensorpanel/
- Cache: ~/Library/Caches/sensorpanel/
Windows:
- Config: %APPDATA%\sensorpanel\
- Data: %LOCALAPPDATA%\sensorpanel\
- Cache: %LOCALAPPDATA%\sensorpanel\cache\
Subdirectories:
- themes/ -> in Data directory (user-installed themes)
- browser/ -> in Cache directory (headless browser binary)
Index ¶
- func BrowserDir() (string, error)
- func CacheDir() (string, error)
- func ConfigDir() (string, error)
- func DataDir() (string, error)
- func EnsureBrowserDir() (string, error)
- func EnsureDir(path string) error
- func EnsureThemesDir() (string, error)
- func ThemeDir(themeName string) (string, error)
- func ThemesDir() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BrowserDir ¶
BrowserDir returns the directory where the headless browser is stored.
func CacheDir ¶
CacheDir returns the XDG cache directory for sensorpanel. Default: ~/.cache/sensorpanel/
func ConfigDir ¶
ConfigDir returns the XDG config directory for sensorpanel. Default: ~/.config/sensorpanel/
func DataDir ¶
DataDir returns the XDG data directory for sensorpanel. Default: ~/.local/share/sensorpanel/
func EnsureBrowserDir ¶
EnsureBrowserDir creates the browser cache directory if it doesn't exist.
func EnsureThemesDir ¶
EnsureThemesDir creates the themes directory if it doesn't exist.
Types ¶
This section is empty.