0.88 Linux. system theme not adhered

*** Please report new bugs here! ***

Moderator: Dreamer

roland65
Posts: 38
Joined: Wed Apr 19, 2017 11:53 am

Re: 0.88 Linux. system theme not adhered

Post by roland65 » Wed Jan 17, 2018 8:41 am

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.
Attachments
lib.tar.gz
(224.49 KiB) Downloaded 43 times

sissou
Posts: 18
Joined: Wed Nov 08, 2017 9:24 pm

Re: 0.88 Linux. system theme not adhered

Post by sissou » Wed Jan 17, 2018 6:35 pm

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

roland65
Posts: 38
Joined: Wed Apr 19, 2017 11:53 am

Re: 0.88 Linux. system theme not adhered

Post by roland65 » Thu Jan 18, 2018 7:45 am

What system do you use?

sissou
Posts: 18
Joined: Wed Nov 08, 2017 9:24 pm

Re: 0.88 Linux. system theme not adhered

Post by sissou » Thu Jan 18, 2018 8:09 am

Debian Stretch 64 with XFCE.

roland65
Posts: 38
Joined: Wed Apr 19, 2017 11:53 am

Re: 0.88 Linux. system theme not adhered

Post by roland65 » Thu Jan 18, 2018 3:51 pm

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 :-(

sissou
Posts: 18
Joined: Wed Nov 08, 2017 9:24 pm

Re: 0.88 Linux. system theme not adhered

Post by sissou » Thu Jan 18, 2018 8:43 pm

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...

roland65
Posts: 38
Joined: Wed Apr 19, 2017 11:53 am

Re: 0.88 Linux. system theme not adhered

Post by roland65 » Fri Jan 19, 2018 7:50 am

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.

roland65
Posts: 38
Joined: Wed Apr 19, 2017 11:53 am

Re: 0.88 Linux. system theme not adhered

Post by roland65 » Fri Jan 19, 2018 8:02 am

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.

sissou
Posts: 18
Joined: Wed Nov 08, 2017 9:24 pm

Re: 0.88 Linux. system theme not adhered

Post by sissou » Sat Jan 20, 2018 4:47 pm

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...

roland65
Posts: 38
Joined: Wed Apr 19, 2017 11:53 am

Re: 0.88 Linux. system theme not adhered

Post by roland65 » Sat Jan 20, 2018 7:43 pm

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?

roland65
Posts: 38
Joined: Wed Apr 19, 2017 11:53 am

Re: 0.88 Linux. system theme not adhered

Post by roland65 » Sun Jan 21, 2018 11:43 am

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?
Attachments
lib-qt5.9.3.tar.gz
(225.18 KiB) Downloaded 35 times

sissou
Posts: 18
Joined: Wed Nov 08, 2017 9:24 pm

Re: 0.88 Linux. system theme not adhered

Post by sissou » Sun Jan 21, 2018 2:22 pm

Awesome !
It does work with these files ;-)

Thanks a lot !

roland65
Posts: 38
Joined: Wed Apr 19, 2017 11:53 am

Re: 0.88 Linux. system theme not adhered

Post by roland65 » Sun Jan 21, 2018 4:34 pm

sissou wrote:Thanks a lot !
You're welcome.
Nice to see it works now...

sissou
Posts: 18
Joined: Wed Nov 08, 2017 9:24 pm

Re: 0.88 Linux. system theme not adhered

Post by sissou » Sun Jan 21, 2018 8:57 pm

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 ?

roland65
Posts: 38
Joined: Wed Apr 19, 2017 11:53 am

Re: 0.88 Linux. system theme not adhered

Post by roland65 » Mon Jan 22, 2018 7:58 am

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...

Post Reply