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
1.8.8: Can't modify startup directory
Moderators: helmut, XnTriq, xnview, Dreamer
Re: 1.8.8: Can't modify startup directory
do you have same problem if you drag&drop a file into XnView's icon?
Pierre.
Re: 1.8.8: Can't modify startup directory
Yes, with drag-n-drop the behaviour is the samexnview wrote: Wed May 28, 2025 1:15 pm do you have same problem if you drag&drop a file into XnView's icon?
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
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
- Attachments
-
- xnview.ini.zip
- (5.32 KiB) Downloaded 2 times
Re: 1.8.8: Can't modify startup directory

By default current folder is the source folder of dragged file
Pierre.
Re: 1.8.8: Can't modify startup directory
This problem is supposed to be fixed in XnView MP 1.9.2. Please check and confirm the bug fix here.
Pierre.
Re: 1.8.8: Can't modify startup directory
Fixed in 1.9.2, thank you!