On Linux XnView doesn't use the same file dialogs as other Qt applications in the system, at least not on KDE or LXQt. I was hoping Qt6 would fix this but it doesn't look like it. The icon theme is also wrong. Can it be fixed?
XnView MP Linux 1.11.4 beta 2 for Qt6
Moderator: xnview
-
anonsan
- Posts: 11
- Joined: Fri Jan 20, 2023 5:29 am
XnView MP Linux 1.11.4 beta 2 for Qt6
You do not have the required permissions to view the files attached to this post.
-
xnview
- Author of XnView
- Posts: 48082
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: XnView MP (Windows + Linux) 1.11.4 beta 2 for Qt6
same with 1.11.2? you means which Qt apps?
Pierre.
-
anonsan
- Posts: 11
- Joined: Fri Jan 20, 2023 5:29 am
Re: XnView MP Linux 1.11.4 beta 2 for Qt6
Same with all Qt5-based versions. Like I said, I figured this was a Qt5 problem because support for Qt5 in KDE is kinda dead at this point and KeePassXC (also still Qt5-based) also has this problem but qBittorrent for example (Qt6-based) doesn’t.
-
xnview
- Author of XnView
- Posts: 48082
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: XnView MP Linux 1.11.4 beta 2 for Qt6
do you have tried to set
which distribution do you use?
Code: Select all
QT_QPA_PLATFORMTHEME=xdgdesktopportalPierre.
-
anonsan
- Posts: 11
- Joined: Fri Jan 20, 2023 5:29 am
Re: XnView MP Linux 1.11.4 beta 2 for Qt6
This fixes the file dialog but not the icon theme in XnView itself. (See below.)xnview wrote: Tue May 26, 2026 7:21 am do you have tried to setwhich distribution do you use?Code: Select all
QT_QPA_PLATFORMTHEME=xdgdesktopportal
Note also that both qBittorrent and Audacious use the correct file dialog with QT_QPA_PLATFORMTHEME unset.
Distro is Debian Sid.
You do not have the required permissions to view the files attached to this post.
-
xnview
- Author of XnView
- Posts: 48082
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: XnView MP Linux 1.11.4 beta 2 for Qt6
which version ?
Code: Select all
plasmashell --versionPierre.
-
anonsan
- Posts: 11
- Joined: Fri Jan 20, 2023 5:29 am
Re: XnView MP Linux 1.11.4 beta 2 for Qt6
I've been experimenting a little. The problem is the use of bundled Qt instead of system Qt. The bundled Qt comes with the gtk3 and xdgdesktopportal platform themes, and KDEPlasmaPlatformTheme6.so which provides the kde platform theme is not considered although it exists in the system. (At /usr/lib/x86_64-linux-gnu/qt6/plugins/platformthemes/KDEPlasmaPlatformTheme6.so in Debian's case.)
If I wipe qt.conf and all the Qt libraries from the bundled lib/ directory and let system Qt libraries be loaded instead, then the file dialog and icons all look as expected. The application itself also works fine.
If I wipe qt.conf and all the Qt libraries from the bundled lib/ directory and let system Qt libraries be loaded instead, then the file dialog and icons all look as expected. The application itself also works fine.
plasmashell 6.6.5