swiftbar / SwiftBar

Powerful macOS menu bar customization tool
https://swiftbar.app
MIT License
2.93k stars 92 forks source link

Follow XDG Base Directory specification #232

Closed sebdanielsson closed 3 years ago

sebdanielsson commented 3 years ago

TLDR: Our home directories have turned into a miss of dotfiles and application directories. Most of my software now follow the XDG Base Directory spec by default or scans it before creating the config files in the home directory.

By following the spec SwiftBar would store config files at: ~/.config/swiftbar

The spec also recommends storing cache and other temporary files at: ~/.cache/swiftbar

The standard: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

Software that supports the XDG Base Directory standard: https://wiki.archlinux.org/title/XDG_Base_Directory#Support

melonamin commented 3 years ago

Hi @SebDanielsson, thank you, I'm familiar with XDG Based Directory spec.

Can you explain how it applies to SwiftBar?

By following the spec SwiftBar would store config files at: ~/.config/swiftbar

SwiftBar doesn't have any dedicated config files at this moment. We use defaults as a standard way to store configurable values for apps on macOS

The spec also recommends storing cache and other temporary files at: ~/.cache/swiftbar

On macOS the best practice is to use dedicated cache folders, this will allow system to purge it if needed

sebdanielsson commented 3 years ago

Sorry, didn't realize there was an "Change Plugin Folder..." option. Closing now. Thanks for this great software :)