Page 1 of 1

Webp file are opened in Browser Mode instead of Viewer Mode (settings are ignored)

Posted: Tue Sep 24, 2024 7:11 pm
by Dret
Hi to all,

I would like to report a nasty bug.

I'm using XnVewMP Portable version.

Normally, when I click on an image file this is correctly opened into XnViewMP inside Viewer Mode.

But when I open a Webp file this one is opened into the Browser Mode, showing the folder instead of file and ignoring the settings in Option menu.

How can i fix this?

It's frustratin to search every time the right image in Browser Mode instead of the Viewer Mode! :(

Thanks in advance for support.
Bye.

Re: Webp file are opened in Browser Mode instead of Viewer Mode (settings are ignored)

Posted: Tue Sep 24, 2024 8:04 pm
by user0
from 1.4.3 - settings - integration - file association - add new ProgID:
  1. register app in the system
    • run XnViewMP with admin rights
    • press 'Set file associations...' (in Settings > Integration) to create ProgID keys in registry
    • make sure there is XnViewMP.webp key created in registry, eg:
      update path to match your case

      Code: Select all

      Windows Registry Editor Version 5.00
      
      [HKEY_CLASSES_ROOT\XnViewMP.webp]
      @="WEBP Bitmap file"
      
      [HKEY_CLASSES_ROOT\XnViewMP.webp\DefaultIcon]
      @="D:\\PROG\\portable\\graphic\\XnViewMP\\FileIcons\\webp.ico"
      
      [HKEY_CLASSES_ROOT\XnViewMP.webp\shell\open\command]
      @="\"D:\\PROG\\portable\\graphic\\XnViewMP\\xnviewmp.exe\" \"%1\""
      
  2. set associations
    • use any method to set associations:
      - windows 'Default apps'
      - windows 'Open with' context menu
      - 3rd party app, eg SetUserFTA

Re: Webp file are opened in Browser Mode instead of Viewer Mode (settings are ignored)

Posted: Tue Sep 24, 2024 9:14 pm
by Dret
The keys in the registry are correct considering with the ones posted above.

I tried to use SetUserFTA without success.

:?

Re: Webp file are opened in Browser Mode instead of Viewer Mode (settings are ignored)

Posted: Sat Dec 07, 2024 7:34 pm
by Dret
Update:

I'm now using XnViewMp portable in a new PC (Win 10) and I have the same problem with .webp files.

Different systems, same problem: I don't think this can be related to a wrong file association (the keys are correct), it's seems something related to the app itself (maybe the portable version?).

Some ideas about?

Re: Webp file are opened in Browser Mode instead of Viewer Mode (settings are ignored)

Posted: Sun Dec 08, 2024 4:42 pm
by xnview
It works here, which registry keys for .webp do you have?

Re: Webp file are opened in Browser Mode instead of Viewer Mode (settings are ignored)

Posted: Sun Dec 08, 2024 5:13 pm
by Dret
The same posted above here (adapted to my path):

viewtopic.php?p=200807&sid=c05e3b6cd0ab ... 20#p200807

But the problem persist. :(

Re: Webp file are opened in Browser Mode instead of Viewer Mode (settings are ignored)

Posted: Tue Dec 10, 2024 1:00 pm
by xnview
I've tried on a clean windows 10, and no problem.
What do you have in Settings>Startup?

Re: Webp file are opened in Browser Mode instead of Viewer Mode (settings are ignored)

Posted: Tue Dec 10, 2024 1:33 pm
by Dret
1) Open with file > Viewer
2) Open without file > Browser

As you can see in screenshot

Re: Webp file are opened in Browser Mode instead of Viewer Mode (settings are ignored)

Posted: Tue Dec 10, 2024 2:30 pm
by user0
  • redo all steps from my post, try different association methods
  • run SetUserFTA.exe get > c:\associations.txt
    check txt file, what is written next to .webp?
  • post win registry export of XnViewMP.webp from HKCR (just in case, also check if HKCU it should be the same)

Re: Webp file are opened in Browser Mode instead of Viewer Mode (settings are ignored)

Posted: Tue Dec 10, 2024 5:34 pm
by Dret
Point by point...

1) Result of SetUserFTA is: .webp, webp_auto_file

2) The export of XnViewMP.webp from HKCR is:

Code: Select all

Nome chiave:          HKEY_CLASSES_ROOT\XnViewMP.webp
Nome classe:        <NESSUNA CLASSE>
Ora ultima scrittura:   15/10/2023 - 10:40
Valore 0
  Nome            <Senza nome>
  Tipo            REG_SZ
  Dati            WEBP file Bitmap


Nome chiave:          HKEY_CLASSES_ROOT\XnViewMP.webp\DefaultIcon
Nome classe:        <NESSUNA CLASSE>
Ora ultima scrittura:   08/12/2024 - 11:13
Valore 0
  Nome            <Senza nome>
  Tipo            REG_SZ
  Dati            D:/SISTEMA/PORTABILI/XnViewMP/FileIcons/webp.ico


Nome chiave:          HKEY_CLASSES_ROOT\XnViewMP.webp\shell
Nome classe:        <NESSUNA CLASSE>
Ora ultima scrittura:   15/10/2023 - 10:40

Nome chiave:          HKEY_CLASSES_ROOT\XnViewMP.webp\shell\open
Nome classe:        <NESSUNA CLASSE>
Ora ultima scrittura:   08/12/2024 - 11:14
Valore 0
  Nome            <Senza nome>
  Tipo            REG_SZ
  Dati            D:/SISTEMA/PORTABILI/XnViewMP/xnviewmp.exe


Nome chiave:          HKEY_CLASSES_ROOT\XnViewMP.webp\shell\open\command
Nome classe:        <NESSUNA CLASSE>
Ora ultima scrittura:   24/09/2024 - 19:36
Valore 0
  Nome            <Senza nome>
  Tipo            REG_SZ
  Dati            "D:\SISTEMA\PORTABILI\XnViewMP\xnviewmp.exe" "%1"
3) Under HKCU I can't find a similar key. I only found, under "Software", the Xnview key with this value:

Code: Select all

Nome chiave:          HKEY_CURRENT_USER\SOFTWARE\XnView
Nome classe:        <NESSUNA CLASSE>
Ora ultima scrittura:   24/03/2024 - 15:08

Nome chiave:          HKEY_CURRENT_USER\SOFTWARE\XnView\XnViewMP
Nome classe:        <NESSUNA CLASSE>
Ora ultima scrittura:   24/03/2024 - 15:08
I hope this colud be usefull and thanks for support!

Re: Webp file are opened in Browser Mode instead of Viewer Mode (settings are ignored)

Posted: Tue Dec 10, 2024 7:09 pm
by user0
Dret wrote: Tue Dec 10, 2024 5:34 pm 2) The export of XnViewMP.webp from HKCR is:
you have D:/SISTEMA/PORTABILI/XnViewMP/xnviewmp.exe in ..\XnViewMP.webp\shell\open, it should not be there

not a big deal, but better to fix
1. select first XnViewMP.xxx key in HKEY_CLASSES_ROOT
2. and delete them all one by one
3. press F5
4. also check and delete if any XnViewMP.xxx keys remain in:
HKEY_CURRENT_USER\Software\Classes\
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\
5. repeat step1 from my post

Dret wrote: Tue Dec 10, 2024 5:34 pm 1) Result of SetUserFTA is: .webp, webp_auto_file
this is the issue, it should be:
.webp, XnViewMP.webp

you need to reassociate webp with app again
1. repeat step2 from my post, I suggest using SetUserFTA


ps. fyi, to export keys from registry - right click on key, press Export in context menu and save as .reg file (open with notepad)

[SOLVED] Webp file are opened in Browser Mode instead of Viewer Mode (settings are ignored)

Posted: Tue Dec 10, 2024 7:59 pm
by Dret
Finally, it's done!

Thanks for patience and support!!! :D :D :D

Here’s a small summary for anyone who might need it:

- Download SetUserFTA.
- Open CMD as administrator and navigate to the SetUserFTA folder.
- Run the command:

SetUserFTA.exe get > c:\associations.txt

- Open the "associations.txt" file created in c:/
- In the list of associations, there should be this value:

.webp, XnViewMP.webp

- If there is anything else, then run this command to correctly re-establish the association with XnViewMP:

SetUserFTA.exe .webp "XnViewMP.webp"

Re: Webp file are opened in Browser Mode instead of Viewer Mode (settings are ignored)

Posted: Sat May 24, 2025 9:44 pm
by dmerces
@user0, thanks for the valuable tips.

In my case I just add "%1" to the command line stored in the Context Menu setup.
It was "C:\Program Files (x86)\XnView\xnview.exe" and I changed it to "C:\Program Files (x86)\XnView\xnview.exe" "%1".

I've used the utility "Default Programs Editor" available in https://defaultprogramseditor.com

Everything works fine now!

Hope it can help.