xnview.ini is stored in wrong place
Moderators: helmut, XnTriq, xnview, Dreamer
xnview.ini is stored in wrong place
The freedesktop.org specification states, and most programs follow it, that user configuration files should be stored in $XDG_CONFIG_HOME and if that is either not set or empty, $HOME/.config should be used. XnViewMP stores xnview.ini in $HOME/.xnviewmp
http://standards.freedesktop.org/basedi ... atest.html
http://standards.freedesktop.org/basedi ... atest.html
- schultzter
- Posts: 27
- Joined: Tue Aug 26, 2014 4:38 pm
- Location: Montreal, Qc
- Contact:
Re: xnview.ini is stored in wrong place
I agree, it would be better to follow standards.
I also noticed that if I try to set the Use .ini file in folder folder to Program (XnView) it doesn't actually change the location of the .ini file. Which makes sense because the program location on Linux is read-only to normal users (/usr/bin).
A simple solution would be to disable this setting on Linux.
I also noticed that if I try to set the Use .ini file in folder folder to Program (XnView) it doesn't actually change the location of the .ini file. Which makes sense because the program location on Linux is read-only to normal users (/usr/bin).
A simple solution would be to disable this setting on Linux.
Version 0.72 x64 (Dec 19 2014) on Arch Linux
Headed for the second star to the right and straight on 'til morning...
Headed for the second star to the right and straight on 'til morning...
Re: xnview.ini is stored in wrong place
Thank you for the fix.
Re: xnview.ini is stored in wrong place
I'm testing 0.78. Now the settings are stored generally in the right place, in but the name of the folder is wrong. 0.78 stores settings in a folder named The xnviewmp folder should not have a period in the front because in Linux that means that the folder is hidden, and a settings folder should not be hidden.
To fix it: have XnView MP store settings in
Code: Select all
~/.config/
Code: Select all
.xnviewmp
To fix it: have XnView MP store settings in
Code: Select all
~/.config/xnview/
Re: xnview.ini is stored in wrong place
Right, subdirs (config dirs) under $HOME/.config or any directories that follows XDG rules shouldn't be hidden (starting with a dot '.'). The previous use in GNU/Linux world was to store config dirs as hidden one at the root of $HOME, though, but it's a different and outdated scheme.
Same, picking '.config' as a hardcoded value might be dangerous.
Same, picking '.config' as a hardcoded value might be dangerous.
Re: xnview.ini is stored in wrong place
The problem (wrong name) is supposed to be fixed in XnView MP 0.79 or later. Could you please try and confirm the bug fix, Biscuit or wwp?
Re: xnview.ini is stored in wrong place
I confirm that XnView MP 0.84 stores the INI file in the correct place -
Code: Select all
~/.config/xnviewmp/xnview.ini
Re: xnview.ini is stored in wrong place
Thank you for confirming, Biscuit!Biscuit wrote:I confirm that XnView MP 0.84 stores the INI file in the correct place -Code: Select all
~/.config/xnviewmp/xnview.ini
