Windows11 (22H2), display resolution 3840x2160, win scaling 150%
Settings - Integration
XnViewMP can read/write JFIF, but does not open it Viewer tab after association
To reproduce:
- associate JFIF with XnViewMP (if it is not in the list - manually navigate to xnviewmp.exe)
- Start > Settings > Apps > Default apps OR
- win+r, run ms-settings:defaultapps - double-click on image file in windows file explorer
Issue
XnViewMP opens:
- browser with last directory (default settings) OR
- empty tab - if untick 'Open browser at startup' in Settings
Registry
- CHECK
Lets associate few apps and check what keys windows creates in registry:- XnViewMP
Code: Select all
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jfif\UserChoice] "ProgId"="Applications\\xnviewmp.exe" "Hash"="NnaYQb9xvlE="
- ACDSee
Code: Select all
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jfif\UserChoice] "ProgId"="ACDSee Ultimate 2023.jfif" "Hash"="3X0UKoU+PV8="
- IrfanView
Code: Select all
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jfif\UserChoice] "ProgId"="Applications\\i_view64.exe" "Hash"="yQZfQC1AkSM="
- FastStone
Code: Select all
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jfif\UserChoice] "ProgId"="Applications\\FSViewer.exe" "Hash"="C50oD/i4bt4="
- MS Photos
Code: Select all
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jfif\UserChoice] "ProgId"="AppX43hnxtbyyps62jhe9sqpdzxn1790zetc" "Hash"="8hhFU2I6cJ4="
HKEY_CURRENT_USER\Software\Classes\Applications\xnviewmp.exe
that does not exist in case of xnview for some reason - XnViewMP
- FIX
Few assumptions:
- xnviewmp located at D:\PROG\portable\graphic\XnViewMP\xnviewmp.exe
- use HKEY_CURRENT_USER reg hive
- it may be required to restart explorer.exe or reassociate via win settings once reg keys are added
Association can be done in several ways:- Approach A - Applications\xnviewmp.exe
via single app reference (no custom icons/localized file descriptions) for all required formats
- lets create it:
Code: Select all
[HKEY_CURRENT_USER\Software\Classes\Applications\xnviewmp.exe\shell\open\command] @="\"D:\\PROG\\portable\\graphic\\XnViewMP\\xnviewmp.exe\" \"%1\""
- lets create it:
- Approach B - XnViewMP.jfif
via separate XnViewMP.xxx keys (with custom icons/localized file descriptions) for all required formats
I assume XnViewMP creates these keys when "Set file associations..." pressed in Settings (require admin rights),
unfortunately no XnViewMP.jfif key iscreated.
- lets create it:
Note: file will have .jpg icon as there is no .jfif icon in xnview directory
Code: Select all
[HKEY_CURRENT_USER\Software\Classes\XnViewMP.jfif] @="JFIF Bitmap file" [HKEY_CURRENT_USER\Software\Classes\XnViewMP.jfif\DefaultIcon] @="D:/PROG/portable/graphic/XnViewMP/FileIcons/jpg.ico" [HKEY_CURRENT_USER\Software\Classes\XnViewMP.jfif\shell] [HKEY_CURRENT_USER\Software\Classes\XnViewMP.jfif\shell\open] [HKEY_CURRENT_USER\Software\Classes\XnViewMP.jfif\shell\open\command] @="\"D:\\PROG\\portable\\graphic\\XnViewMP\\xnviewmp.exe\" \"%1\""
- also lets create reference to this new key in:
Code: Select all
[HKEY_CURRENT_USER\Software\Classes\.jfif\OpenWithProgids] "XnViewMP.jfif"=hex(0):
- lets create it:
- Approach A - Applications\xnviewmp.exe
Not sure who is not messing with registry enough (windows or xnview), but all other apps mentioned here have no association issues
ps. some stuff from 2014
How to change default mode to open to view, not browser
pps. how to set assosiation via SetUserFTA