You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having a new application wanting to place it's configuration data in the users home directory is rather unfortunate, and alternative locations would be appreciated. It would be preferable if the default suggested location were to change as well, but that's not strictly necessary.
For Linux, the relevant directory for the config would be $XDG_CONFIG_HOME/rio/config.toml if XDG_CONFIG_HOME set, otherwise it's conventionally ~/.config/rio/config.toml [1]
For Windows, the directory would likely be {Home folder}/AppData/Roaming/rio/config.toml, though, I believe there may also be special ways you're suppose to access directories like that?
For Mac, it seems as though the suggested location would be ~/Library/Application Support/rio/rio.toml. I don't use a Mac, however, and found this through skimming documentation.
If backwards compatibility is a priority here, then what's typically done is that an application would first check the legacy path and load a config file there if present, and only look in subsequent paths if it isn't. This can create a bit of confusion about which is the proper one, but having multiple paths like this isn't especially unusual either, as long as the order in which paths are checked is documented.
[1] Also consider looking at the XDG Base Directory spec, which contains the proper locations of other types of data on Linux.
Thank you for your work on rio. I'm looking forward to its progress!
Edit: I just noticed themes are also loaded from that directory. I believe the locations outlined for the config file would also be correct for these theme files as well.
Edit: Actually, it seems as though this was implemented, but just reverted in commit 2044c3a? Is it intended to be kept that way?
The text was updated successfully, but these errors were encountered:
I have been wondering if instead of use XDG spec blindly for all platforms, if we can have that for Windows and Linux but for MacOs use ~/.config/rio instead of ~/Library/Application Support/rio.
Having a new application wanting to place it's configuration data in the users home directory is rather unfortunate, and alternative locations would be appreciated. It would be preferable if the default suggested location were to change as well, but that's not strictly necessary.
For Linux, the relevant directory for the config would be
$XDG_CONFIG_HOME/rio/config.toml
ifXDG_CONFIG_HOME
set, otherwise it's conventionally~/.config/rio/config.toml
[1]For Windows, the directory would likely be
{Home folder}/AppData/Roaming/rio/config.toml
, though, I believe there may also be special ways you're suppose to access directories like that?For Mac, it seems as though the suggested location would be
~/Library/Application Support/rio/rio.toml
. I don't use a Mac, however, and found this through skimming documentation.If backwards compatibility is a priority here, then what's typically done is that an application would first check the legacy path and load a config file there if present, and only look in subsequent paths if it isn't. This can create a bit of confusion about which is the proper one, but having multiple paths like this isn't especially unusual either, as long as the order in which paths are checked is documented.
[1] Also consider looking at the XDG Base Directory spec, which contains the proper locations of other types of data on Linux.
Thank you for your work on rio. I'm looking forward to its progress!
Edit: I just noticed themes are also loaded from that directory. I believe the locations outlined for the config file would also be correct for these theme files as well.
Edit: Actually, it seems as though this was implemented, but just reverted in commit 2044c3a? Is it intended to be kept that way?
The text was updated successfully, but these errors were encountered: