xnview.ini is stored in wrong place

Reported bugs that have been closed and/or resolved

Moderators: 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 » Mon May 04, 2015 8:11 pm

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 » Fri Aug 28, 2015 3:22 am

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: 31504
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: xnview.ini is stored in wrong place

Post by xnview » Mon Aug 31, 2015 1:57 pm

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 » Sat Mar 05, 2016 11:48 am

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 » Sun Mar 06, 2016 3:09 pm

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: 45
Joined: Sun Jan 03, 2016 2:37 pm
Location: Montpellier/France

Re: xnview.ini is stored in wrong place

Post by wwp » Mon Mar 07, 2016 11:49 am

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: 31504
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: xnview.ini is stored in wrong place

Post by xnview » Wed Mar 09, 2016 2:38 pm

See Issue 811 for current status and details.
Pierre.

User avatar
helmut
Posts: 8153
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: xnview.ini is stored in wrong place

Post by helmut » Thu Mar 02, 2017 4:52 pm

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 » Thu Mar 02, 2017 6:11 pm

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: 8153
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: xnview.ini is stored in wrong place

Post by helmut » Thu Mar 02, 2017 7:15 pm

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