mundus
mundus copied to clipboard
Use XDG_DATA_HOME for storing backups instead of "~/.mundus"
I noticed that mundus puts backups and other data inside ~/.mundus
, though this should be avoided when possible. As of XDG Base Directory Specification, ~/.local/share
directory should be used for application data by default.
$XDG_DATA_HOME defines the base directory relative to which user specific data files should be stored. If $XDG_DATA_HOME is either not set or empty, a default equal to $HOME/.local/share should be used.
This is important to avoid clutter in users home directory.
umm i dont think so.. thjis proyect can be implemented as module to other, if i setup a ebpage, the user are www-root and in this case that XDG base dont's exists! so this issue are not as valid so far
@mckaygerhard I read your comment several times and I still don't get what you mean
well, this its a application for the files under a user home right? well some users are without access, like those such oracle must need.. but are normal users.. those users dont have a xdg environment per see, so will fail..
BUT: a real case, if i use a light desktop such as rosh or fmwm .. neither will have! or if i setup startx.. from console.. xdg environment vars will not are available.. so in conclusion.. your requirement are like alway think runs in a guindo-like environment.. not linux its not so standard
@mckaygerhard I think you got a bit confused. Resolving this issue is not going to affect anything for a user. You don't need GUI or XDG variables to be defined in your environment (they usually aren't by default anyway). The only thing that is going to change for you is the backup directory path, so nothing to worry about :)
ah, well i point that but with diferent direction..