XDG base directory spec
Added full support for XDG_DATA_DIRS and XDG_CONFIG_DIRS as requested by #818 (closed)
To test you can move away your ~/.remmina, or ~/.config/remmina and ~/.local/share/remmina directories.
You can (manually at the moment), populate your $XDG_CONFIG_DIRS/remmina (it should be /etc/xdg/remmina) with your ~/.config/remmina/remmina.pref (and move away the ~/.config/remmina directory). Same for the .remmina files you have under ~/.local/share/remmina, that you can copy into $XDG_DATA_DIRS (normally /usr/share/remmina or /usr/local/share/remmina), again, removing the ~/.local/share/remmina directory.
As a last improvements I was thinking to add by default some template profiles to show up some different Remmina configurations in the XDG system directories.
I think there is still a big issue, but I don't get how should be the good behaviour.
If there are files in the system directories and the user data and config directories don't exists yet, remmina will try to save new profiles under the system directories.
This is quite normally as per my logic and comprehension of the spec.
I can write a script to migrate profiles if you like.