SolidOak icon indicating copy to clipboard operation
SolidOak copied to clipboard

use XDG baasedir spec instead of ~/.dotfile

Open flying-sheep opened this issue 10 years ago • 4 comments

xdg_basedir has get_config_home() which you can use to get the correct directory to put config files into on linux.

on windows, it should go into %appdata%.

for backwards compatibility, it should first try to read from the correct location, then from the old ~/.solidoakrc, and use the first one it can find. if it can’t find anything, it should create the config file in the correct location.

flying-sheep avatar Sep 12 '15 09:09 flying-sheep

Generally I'd do this, but the reason I didn't in this case was to be consistent with Vim, which also does not use that spec. Experienced Vim users would expect it to be in the root of the home dir.

oakes avatar Sep 14 '15 13:09 oakes

simply allow both then. if the config file in the correct location cannot be found, fall back to ~/.soakrc

flying-sheep avatar Sep 15 '15 09:09 flying-sheep

Yeah I can do that (actually, that's what I do in my other IDE, Nightcode).

oakes avatar Sep 15 '15 12:09 oakes

:+1: great, thanks!

flying-sheep avatar Sep 20 '15 20:09 flying-sheep