1.8.8: Can't modify startup directory

Reported bugs that have been closed and/or resolved

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
moropus
Posts: 26
Joined: Thu May 22, 2025 3:04 pm

1.8.8: Can't modify startup directory

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

Re: 1.8.8: Can't modify startup directory

Post by xnview »

do you have same problem if you drag&drop a file into XnView's icon?
Pierre.
moropus
Posts: 26
Joined: Thu May 22, 2025 3:04 pm

Re: 1.8.8: Can't modify startup directory

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

Re: 1.8.8: Can't modify startup directory

Post by xnview »

i can't reproduce, please send your xnview.ini
Pierre.
moropus
Posts: 26
Joined: Thu May 22, 2025 3:04 pm

Re: 1.8.8: Can't modify startup directory

Post 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
Attachments
xnview.ini.zip
(5.32 KiB) Downloaded 2 times
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.8.8: Can't modify startup directory

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
By default current folder is the source folder of dragged file
Pierre.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.8.8: Can't modify startup directory

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.9.2. Please check and confirm the bug fix here.
Pierre.
moropus
Posts: 26
Joined: Thu May 22, 2025 3:04 pm

Re: 1.8.8: Can't modify startup directory

Post by moropus »

Fixed in 1.9.2, thank you!
Post Reply