xnview.ini is stored in wrong place

Reported bugs that have been closed and/or resolved

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
Biscuit
Posts: 33
Joined: Mon May 04, 2015 12:22 pm

xnview.ini is stored in wrong place

Post by Biscuit »

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
User avatar
schultzter
Posts: 27
Joined: Tue Aug 26, 2014 4:38 pm
Location: Montreal, Qc
Contact:

Re: xnview.ini is stored in wrong place

Post by schultzter »

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.
Version 0.72 x64 (Dec 19 2014) on Arch Linux

Headed for the second star to the right and straight on 'til morning...
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: xnview.ini is stored in wrong place

Post by xnview »

See Issue 691 for current status and details.
Pierre.
Biscuit
Posts: 33
Joined: Mon May 04, 2015 12:22 pm

Re: xnview.ini is stored in wrong place

Post by Biscuit »

Thank you for the fix.
Biscuit
Posts: 33
Joined: Mon May 04, 2015 12:22 pm

Re: xnview.ini is stored in wrong place

Post by Biscuit »

I'm testing 0.78. Now the settings are stored generally in the right place, in

Code: Select all

~/.config/
but the name of the folder is wrong. 0.78 stores settings in a folder named

Code: Select all

.xnviewmp
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/xnview/
wwp
Posts: 46
Joined: Sun Jan 03, 2016 2:37 pm
Location: Montpellier/France

Re: xnview.ini is stored in wrong place

Post by wwp »

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.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: xnview.ini is stored in wrong place

Post by xnview »

See Issue 811 for current status and details.
Pierre.
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: xnview.ini is stored in wrong place

Post by helmut »

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?
Biscuit
Posts: 33
Joined: Mon May 04, 2015 12:22 pm

Re: xnview.ini is stored in wrong place

Post by Biscuit »

I confirm that XnView MP 0.84 stores the INI file in the correct place -

Code: Select all

~/.config/xnviewmp/xnview.ini
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: xnview.ini is stored in wrong place

Post by helmut »

Biscuit wrote:I confirm that XnView MP 0.84 stores the INI file in the correct place -

Code: Select all

~/.config/xnviewmp/xnview.ini
Thank you for confirming, Biscuit!

:arrow: Closed
Post Reply