Closed ungoldman closed 8 years ago
merging, review welcome
i like the idea, though i like to use $XDG_CONFIG_PATH on OS X as well... probably not a big deal though? (people can always symlink)
@beaugunderson what is $XDG_CONFIG_PATH used for in OS X? This PR is based on what we did in https://github.com/feross/webtorrent-app/blob/master/config.js and the config path is determined by https://github.com/LinusU/node-application-config-path.
whatever the user sets it to (~/.config in my case)
Yeah I guess my instinct is to just use the standard config path for the OS and let users override if they really want to. Would you want Friends to test for an env var before setting CONFIG_PATH
?
using
application-config-path@^0.1.0
for OS-friendly config pathnote this means if you want to keep history you need to copy
friendsdb
andpublic-keys
from the project directory to the application config path, which will be...~/Library/Application Support/Friends/
$XDG_CONFIG_HOME/Friends/
~/.config/Friends/
%LOCALAPPDATA%/Friends/
%USERPROFILE%/Local Settings/Application Data/Friends/
edit: removed
config.json
from table (this is copied from https://github.com/LinusU/node-application-config).