Closed ligurio closed 2 years ago
Yeah, there is such problem. I've kinda fixed it in 445b5ecd. Default value can be set with -DNM_CFG_NAME=".config/nemu/nemu.cfg" in cmake. But I was not confident enough to change previous default behaviour, because it will break previous installations of nemu (it will not find previous config file). There is a simple fix - we can move the file automatically if it is located in ~/.nemu.cfg. @0x501D - do you approve changing default config path to ".config/nemu/nemu.cfg"?
Same question can be asked about VM storage directory and DB path (according to XDG Base Directory Specification it should be something like $HOME/.local/share/nemu/vms and $HOME/.local/share/nemu/nemu.db). But those paths are configured in nemu.cfg and don't need to be moved automatically.
LGTM. Lets fix this.
By default, nemu suggest creating configuration file in a home dir:
But according to XDG Base Directory Specification [1] it should be
$HOME/.config
: