When using the 'open with' (or 'open System' F3) function the file will open in the stated programs, but it seems that those are then not able to browse the other files in the same direction with arrow keys (or doesn't show up on a grid view). When opening them directly without opening XnView first, the previous/next buttons are working well. It seems that XnView passes only the file itself without it's location to the other programs?
viewtopic.php?t=37620
Here is even an example of doing it so with a Batch file, and the %1 value puts out the selected image path correctly. But somehow opening it directly with the in-built 'open with/System' function doesn't allow it to browse its neighbouring files.
'Open with' can't browse folder files
Moderators: XnTriq, helmut, xnview, Dreamer
-
- Author of XnView
- Posts: 44470
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
-
- Posts: 3
- Joined: Sat Nov 25, 2023 2:52 pm
Re: 'Open with' can't browse folder files
So is there a specific reason that it's handling it differently compared to open it directly in the file explorer? Doesn't it also just start XnView with the file as an argument, but does let you look for its file neighbours? In both cases the file gets opened and is being viewed in XnView, but you can't navigate with the 'open with'/parameter function, I don't know why that would be restricted this way.
-
- XnThusiast
- Posts: 1372
- Joined: Tue Sep 27, 2016 8:18 am
- Location: France
Re: 'Open with' can't browse folder files
I tried to create an "Open with" entry with xnview classic as target ...
Now, in XnViewMP, I "Open with > xnview classic" a picture , then xnview classic opens in view mode, and I can browse the same folder ... Is that your aim ?
Now, in XnViewMP, I "Open with > xnview classic" a picture , then xnview classic opens in view mode, and I can browse the same folder ... Is that your aim ?
Catalogage avec XnviewMP : https://orchisere.fr/logiciels/html/xnviewmpintro.htm
Tutoriel exiftool : https://orchisere.fr/logiciels/html/exiftool.htm
Tutoriel exiftool : https://orchisere.fr/logiciels/html/exiftool.htm
-
- Posts: 3
- Joined: Sat Nov 25, 2023 2:52 pm
Re: 'Open with' can't browse folder files
I know why it isn't clear, I realized it affects image viewers working with the UWP api (I'm not really familiar with that topic).
For example the default Windows Photo App and Pictureflect Photo Viewer are affected by it. Xnview classic/Irfanview etc. are not.
https://stackoverflow.com/a/76817324
I've stumbled on this person's explanation and the linked Github solution "fixes" this as long as you use that .exe. For XnView it works well now due to the "open with" function, which links to the .exe and opens it with functional browsing. Not sure if the FileActivatedEventArgs.NeighboringFilesQuery parameter would fix that problem, I'm not really familiar with coding.
..but for the reason why I even need to use the "open with" function, it is the same problem as this and similiar posts:
viewtopic.php?f=62&t=46440
The images look much clearer in those mentioned UWP apps and even when opened in a browser (Firefox in this case) they look good. So at the moment it works by using the Github solution, but would be nice (if it could be still added somehow) to work by default; additionally fixing the blur problem some users seem to be affected.
For example the default Windows Photo App and Pictureflect Photo Viewer are affected by it. Xnview classic/Irfanview etc. are not.
https://stackoverflow.com/a/76817324
I've stumbled on this person's explanation and the linked Github solution "fixes" this as long as you use that .exe. For XnView it works well now due to the "open with" function, which links to the .exe and opens it with functional browsing. Not sure if the FileActivatedEventArgs.NeighboringFilesQuery parameter would fix that problem, I'm not really familiar with coding.
..but for the reason why I even need to use the "open with" function, it is the same problem as this and similiar posts:
viewtopic.php?f=62&t=46440
The images look much clearer in those mentioned UWP apps and even when opened in a browser (Firefox in this case) they look good. So at the moment it works by using the Github solution, but would be nice (if it could be still added somehow) to work by default; additionally fixing the blur problem some users seem to be affected.
Forgot to answer your question, yes and I guess in your case with XnView classic it worked well. So did it for me after I saw your post and tried it with it (I didn't think of testing it with the classic version or even IrfanView etc).