Can't open pictures in external program (xnviewmp)
Environment
Hydrus version: 423 (executable) Platform: Windows 10 OS specifics: 20h2
What happens
Trying to open any image with an external program (could be limited to just xnviewmp) returns the following error:

Steps to reproduce
- Open Hydrus
- Right Click on any image, Open -> in external program
- The error will appear
Desired outcome
The picture opens in xnviewmp
Error message / Log file / Screenshots
Attached under "What happens"
Can't reproduce, it opens the image in xnviewmp for me. Have you select the right exe?
Have you reinstalled mp as the error message suggests?
Check the error for Xnview itself, it could be unrelated to hydrus
I might have hit this issue as well.
I'm on Linux, however (Fedora 36, Hydrus 488 installed via Nix). Running Plasma on Wayland.
Hydrus seems to be unable to open any Qt app, for some reason. I set the variable on the settings as both QT_QPA_PLATFORM to 'wayland' and 'xcb' and both values fail.
It doesn't matter which value I set on launch of hydrus-client either.
The hydrus-client output on the terminal seems to not drop any hints about this, so I set up Gnome Console to snoop around.
Command I set up:
kgx -e qvlc "%path%"
Here's the output:
VLC media player 3.0.17.2 Vetinari (revision )
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
GTK apps work fine. But I had to troubleshoot more.
- Native VLC won't launch. [Qt]
- VLC via Flatpak launches fine. [Qt]
- Celluloid via Flatpak launches. [GTK]
- Haruna via Flatpak launches. [Qt/KDE]
- Native SMPlayer won't launch. [Qt]
- SMPlayer via Flatpak launches fine. [Qt]
- Native GNOME Console launches fine (for what's worth. It's not a video player though.) [GTK]
It seems any app launched via Flatpak works, somehow, but native Qt apps won't open. The error on the image above demonstrates that xnviewmp is also using Qt and is failing with the same error.
@animaldaydream My guess is that when hydrus launches a Qt app, the launched app somehow tries to use the version of Qt platform plugins bundled with Hydrus or something like that (not entirely sure since idk how nix works and whether it has a separate version of Qt for your hydrus install). This error message is typical for mismatch between the version of Qt and the version of the platform plugins so I definitely think you have 2 versions of Qt platform plugins somewhere and your Qt apps are trying to load the wrong ones. Probably because those apps inherit some kind of environment setting from Hydrus. Flatpak probably has its own libs again and the flatpak apps are hardcoded to use those. I would try some workaround where instead of launching the apps directly, you launch some script that cleans up the environment and then launches your app, passing all arguments to it.