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
I'd like to avoid having another .directory cluttering up my home folder if possible. The XDG Base Directory Specification says that config directories and the like should reside under ${XDG_CONFIG_HOME:-$HOME/.config} (read as sh script).
What this would mean for webmacs is that the config directory is $XDG_CONFIG_HOME/.config/webmacs when XDG_CONFIG_HOME is defined and ~/.config/webmacs when not defined.
P.S.
Reading the specification further I realize this probably means the ~/.webmacs/profiles directory should live under ${XDG_DATA_HOME:-$HOME/.local/share}/webmacs/profiles as well.
D.S.
The text was updated successfully, but these errors were encountered:
Thanks for reporting this (and sorry for the delay). I think it's a good idea and a requirement to adhere to standards.
To not make that change a hard breaking change, here is what I can think of:
add a check to move config to the new directories automatically. (and remove that check in some versions)
or, add a deprecation warning to indicate how / where to move the configuration - but still use the configuration (and remove that in some versions)
I'm more in favor of 2.
It would be nice to:
show current path in some web page, say webmacs://config or something. Or maybe in webmacs://version.
would be nice to add the possibility to configure the config dir from the command line. And the profiles directory.
@parkouss Sounds good to me. It doesn't even have to be complicated. First look in .webmacs, if it's there use that + maybe emit deprecation warning. If it's not there check ~/.config/webmacs
I'd like to avoid having another .directory cluttering up my home folder if possible. The XDG Base Directory Specification says that config directories and the like should reside under
${XDG_CONFIG_HOME:-$HOME/.config}
(read as sh script).What this would mean for webmacs is that the config directory is
$XDG_CONFIG_HOME/.config/webmacs
whenXDG_CONFIG_HOME
is defined and~/.config/webmacs
when not defined.See: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
P.S.
Reading the specification further I realize this probably means the
~/.webmacs/profiles
directory should live under${XDG_DATA_HOME:-$HOME/.local/share}/webmacs/profiles
as well.D.S.
The text was updated successfully, but these errors were encountered: