Page 4 of 6
Re: 0.88 Linux. system theme not adhered
Posted: Wed Jan 17, 2018 8:41 am
by roland65
sissou wrote:But it does not work with XNView...
Here is a workaround for now (works on Ubuntu 16.04 and 17.10):
1. Download the attached lib.tar.gz and extract it in your XnView directory (for example in /usr/local/XnView)
2. Launch XnView as:
xnview -platformtheme gtk2
and you should get the system theme.
Re: 0.88 Linux. system theme not adhered
Posted: Wed Jan 17, 2018 6:35 pm
by sissou
I extracted lib.tar.gz in /opt/XnView/lib/ :
Code: Select all
:~$ xnview -platformtheme gtk2
Cannot mix incompatible Qt library (version 0x50902) with this library (version 0x50903)
Aborted
Re: 0.88 Linux. system theme not adhered
Posted: Thu Jan 18, 2018 7:45 am
by roland65
What system do you use?
Re: 0.88 Linux. system theme not adhered
Posted: Thu Jan 18, 2018 8:09 am
by sissou
Debian Stretch 64 with XFCE.
Re: 0.88 Linux. system theme not adhered
Posted: Thu Jan 18, 2018 3:51 pm
by roland65
sissou wrote:Debian Stretch 64 with XFCE.
So you have Qt 5.7.1, unless you have installed a newer version.
My workaround works on Ubuntu 16.04 (with XFCE4 and Qt 5.5.1) and on Ubuntu 17.10 (with Gnome3 and Qt 5.9.1).
Strange that it doesn't work for you

Re: 0.88 Linux. system theme not adhered
Posted: Thu Jan 18, 2018 8:43 pm
by sissou
So you have Qt 5.7.1
Yes I do !
Perhaps I have to compile qt5-style-plugins package : debian version is 5.0.0...
Re: 0.88 Linux. system theme not adhered
Posted: Fri Jan 19, 2018 7:50 am
by roland65
sissou wrote:Perhaps I have to compile qt5-style-plugins package : debian version is 5.0.0...
Same version on Ubuntu 16.04. So the problem is not here.
Re: 0.88 Linux. system theme not adhered
Posted: Fri Jan 19, 2018 8:02 am
by roland65
sissou wrote:Code: Select all
:~$ xnview -platformtheme gtk2
Cannot mix incompatible Qt library (version 0x50902) with this library (version 0x50903)
The error message says that you have on your system a mix of two versions of Qt: 5.9.2 and 5.9.3.
I suggest you uninstall XnView 0.88 (and remove the /opt/XnView directory), then reinstall it, and then extract the lib.tar.gz I provide (this one is for Qt 5.9.2, the version XnView use).
Also double check that you don't have somewhere a 5.9.3 version of libqtgtk2style and libqtgkt2.
Re: 0.88 Linux. system theme not adhered
Posted: Sat Jan 20, 2018 4:47 pm
by sissou
Same problem after these steps ;-(
Switched to new version 0.89 but it doesn't solve the problem : same error message.
It's strange that it's the only QT app I use that has this issue...
Re: 0.88 Linux. system theme not adhered
Posted: Sat Jan 20, 2018 7:43 pm
by roland65
sissou wrote:Same problem after these steps - It's strange that it's the only QT app I use that has this issue...
Would be nice if we could do an "ldd /opt/XnView/XnView -platformtheme gtk2" to see what libraries are loaded, but I don't know how to handle the "-platformtheme gtk2" option in the ldd command?
Re: 0.88 Linux. system theme not adhered
Posted: Sun Jan 21, 2018 11:43 am
by roland65
sissou wrote:Same problem after these steps ;-(
Switched to new version 0.89 but it doesn't solve the problem : same error message.
I tried the new version 0.89 and I got the same error message as you. Looking at the files in /opt/XnView for the new version, I saw that Qt 5.9.3 is now used, so I recompiled the gtk2 platformtheme et style libraries with Qt 5.9.3 and this solve the issue for me.
Could you try with this new version of the libraries?
Re: 0.88 Linux. system theme not adhered
Posted: Sun Jan 21, 2018 2:22 pm
by sissou
Awesome !
It does work with these files
Thanks a lot !
Re: 0.88 Linux. system theme not adhered
Posted: Sun Jan 21, 2018 4:34 pm
by roland65
sissou wrote:Thanks a lot !
You're welcome.
Nice to see it works now...
Re: 0.88 Linux. system theme not adhered
Posted: Sun Jan 21, 2018 8:57 pm
by sissou
Now that XNView MP's look matches desktop theme, I notice that folder icon don't.
And it should, from what I can read here :
viewtopic.php?f=82&t=36148#p144904 :
xnview wrote:QT use the current theme
.
Is this the same kind of problem ?
Re: 0.88 Linux. system theme not adhered
Posted: Mon Jan 22, 2018 7:58 am
by roland65
sissou wrote:Now that XNView MP's look matches desktop theme, I notice that folder icon don't.
And it should, from what I can read here :
viewtopic.php?f=82&t=36148#p144904 :
xnview wrote:QT use the current theme
.
Is this the same kind of problem ?
Yes, I have the same issue, from the beginning.
Unfortunately, for now, I don't know how to manage this issue...