Page 1 of 1

1.8.8: Can't modify startup directory

Posted: Mon May 26, 2025 7:51 am
by moropus
XnView: MP 1.8.8 - 64 bit
OS: Windows 10 64bit

After opening a file and then going Browser mode the first directory is blocked, can't be renamed or deleted.
I usually start XnView from Explorer: I open desired directory with photos, open first file, click Enter and go to Browser to sort photos. Then often I need to rename or delete the first directory, but I suspect it is considered as a startup directory for the exe and it is readonly both from Explorer and XnView. I think it's not important what was the first opened directory and XnView should release the descriptor.

To reproduce:
1. Associate images with XnView
2. Open Explorer, navigate to Folder
3. Open Folder/image.jpg
4. In XnView click Enter, go to Browser
5. Try to rename Folder from Folders panel
-. or Navigate to parent folder, try to rename Folder from parent
-. or Switch to Explorer, try to rename Folder

Actual behaviour (bug):
6. Folder can't be renamed. XnView doesn't show any errors and returns the old name

Expected behaviour:
6. Folder is renamed

Re: 1.8.8: Can't modify startup directory

Posted: Wed May 28, 2025 1:15 pm
by xnview
do you have same problem if you drag&drop a file into XnView's icon?

Re: 1.8.8: Can't modify startup directory

Posted: Wed May 28, 2025 1:54 pm
by moropus
xnview wrote: Wed May 28, 2025 1:15 pm do you have same problem if you drag&drop a file into XnView's icon?
Yes, with drag-n-drop the behaviour is the same
Reproduction:
1. open Explorer, navigate to XnViewMP folder
2. open one more Explorer window, navigate to image folder
3. drag-n-drop image onto xnviewmp.exe
4. XnView opens
5. switch to Browser
6. Try to rename image's parent folder from XnView
Result: the old name returns

Re: 1.8.8: Can't modify startup directory

Posted: Wed Jun 04, 2025 6:45 am
by xnview
i can't reproduce, please send your xnview.ini

Re: 1.8.8: Can't modify startup directory

Posted: Wed Jun 04, 2025 7:15 am
by moropus
xnview wrote: Wed Jun 04, 2025 6:45 am i can't reproduce, please send your xnview.ini
Reproduced on clean portable installation.
Link to video with reproduction: https://drive.google.com/file/d/1ZoECDL ... sp=sharing
Attached xnview.ini.

Open handles for the folder:

Code: Select all

Handle v4.0
Copyright (C) 1997-2014 Mark Russinovich
Sysinternals - www.sysinternals.com

explorer.exe       pid: 5576   type: File          6230: C:\New folder_1234
explorer.exe       pid: 5576   type: File          81FC: C:\New folder_1234
xnviewmp.exe       pid: 15352  type: File            40: C:\New folder_1234
xnviewmp.exe       pid: 15352  type: File           8C0: C:\New folder_1234

Re: 1.8.8: Can't modify startup directory

Posted: Thu Jun 05, 2025 12:15 pm
by xnview
:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
By default current folder is the source folder of dragged file

Re: 1.8.8: Can't modify startup directory

Posted: Tue Jun 10, 2025 2:52 pm
by xnview
This problem is supposed to be fixed in XnView MP 1.9.2. Please check and confirm the bug fix here.

Re: 1.8.8: Can't modify startup directory

Posted: Tue Jun 10, 2025 5:02 pm
by moropus
Fixed in 1.9.2, thank you!