Re: Respect XDG environment variables



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

11.06.2012 15:44, Rashid N. Achilov wrote:
mc 4.8.1 start to use XDG specification to place their preferences
files. But why mc don't use XDG environment variables
XDG_DATA_HOME, XDG_CACHE_HOME, XDG_CONFIG_HOME? These variables
intended for overlapping default locations. I don't like ".cache",
".config" and similar directly at home directory, so I had have
done a patch, whcih respect XDG_* environment variables. Use
g_getenv from glib.

These hardcoded paths have used only in one case: if you specify
MC_HOME environment variable. For example:
MC_HOME=/tmp/mchome-$$ mc

in this case you'll have directory structure:
/tmp/mchome-12345/.cache
/tmp/mchome-12345/.config
/tmp/mchome-12345/.local/share

In any other cases (when MC_HOME variable isn't set) mc used XDG_*
variables as well, you may check it yourself :).

So, I don't understand why we should respect XDG variables when we
want to redefine the base placement of configs. Supporting of MC_HOME
variable intended for testing/temporary purposes only, therefore in my
opinion, supporting of XDG_* variables not needed in this case (the
more so that XDG-variables can contain absolute paths).

- -- 
WBR, Slavaz.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/XhAkACgkQb3oGR6aVLpqKOACfTIuMMPoL2VvudBtN1lHAHBfh
7Y8An2Oczh4l61QQCFnyzwRm7nyo3wEq
=7iib
-----END PGP SIGNATURE-----



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]