Page 1 of 1

XnView opens browser instead of image

Posted: Tue Mar 29, 2016 4:25 pm
by Arete
I have a very strange problem with XNView (Standard) on a Windows 10 computer.

Everything works as it should except for opening ARW images. As far as I know XnView should be able to display ARW images.

Now the problem is if I double-click a *.arw image XnView opens up the browser (blank) instead of "previewing" the image. This is not the case if I open any other picture format.
I tried to disable "Launch Browser at startup". The result now is that if I double-click on an ARW image I simply get a blank Xnview window looking like this:

Image

So there must be something wrong here but I have no Idea how to solve it...

Edit: If i drag a picture from Explorer to the empty XnView window the picture is displayed in XnView properly, however this is not a solution at all. Just a note..

Re: XnView opens browser instead of image

Posted: Tue Mar 29, 2016 7:37 pm
by Peter2
Can you upload an example file?

Re: XnView opens browser instead of image

Posted: Wed Mar 30, 2016 12:30 am
by Mixer
Thanks to thread XnView MP > MP - General Support > Associating .bmp in Windows 8, utility FileTypesMan by Nir Sofer and search function of Regedit I may advise you to try following solution.
Start Regedit, navigate to key [HKEY_CLASSES_ROOT\Applications\xnview.exe\shell\open\command] and change default value of type REG_SZ of this key from

Code: Select all

"X:\Path\xnview.exe"
to

Code: Select all

"X:\Path\xnview.exe" "%1"
Hope this will help.
If association with XnView for .arw files won't catch up to changes, default value of [HKEY_CLASSES_ROOT\.arw] key points to another place where "%1" has to be added. In my case default value is "ARW_auto_file", so it is key [HKEY_CLASSES_ROOT\ARW_auto_file\shell\open\command] where default REG_SZ value must be set to

Code: Select all

"X:\Path\xnview.exe" "%1"
But I created association by checking "Always open this type of files with selected application". If you will use standard Windows 10 file types associator it will probably create some key like [HKEY_CLASSES_ROOT\XnView.arw\shell\open\command]. Or maybe not, but some of XnView types have such keys.

P.S. Just something I found on the matter (not directly related to question).
MSDN: Application Registration states that developer can register file types supported by application with similar hierarchy of keys: HKEY_CLASSES_ROOT\Applications\mspaint.exe\SupportedTypes\.bmp and so on. In my Windows 10 registry in HKEY_CLASSES_ROOT\Applications\xnview.exe there was no SupportedTypes key. Maybe it is because I just copied whole folder from another place not using an installer. I wonder if I create SupportedTypes and add some rare image extensions to this key, will that let me select them in Windows standard association panel for XnView?
Update: answering myself, no it won't, application capabilities are registered in different way.

Re: XnView opens browser instead of image

Posted: Wed Mar 30, 2016 9:31 am
by Arete
Thanks for the reply. However, I just reinstalled XnView after having installed Irfanview and it miraculously works now. I would like to test your suggestion but I think I better leave the system as it is now. I am too scared to screw it up now. Thanks again though!