Summary: | When upgrading from Qt5.4 to Qt5.6, the color and theme handling ignores local settings | ||
---|---|---|---|
Product: | [Plasma] Oxygen | Reporter: | Hans-Peter Jansen <hpj> |
Component: | gtk2-engine | Assignee: | Hugo Pereira Da Costa <hugo.pereira.da.costa> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | b7.10110111, hugo.pereira.da.costa, web |
Priority: | NOR | ||
Version First Reported In: | 1.4.5 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Hans-Peter Jansen
2016-06-24 08:08:09 UTC
Dear Hans-Peter, First of all, thanks a lot for the kind words ! Concerning the issue at hand I am confused. In principle the way oxygen-gtk retrieves its configuration from qt should not depend on the qt version (and even less on qt5, because it is all kde4 stuff). In more details, it looks for kde4 configuration files in the directory list returned by "kde4-config --path config", and loads whatever is found in kdeglobals and in oxygenrc. None of this should depend on qt5 version (in fact, to Ruslan, we should probably update it to also use the output of "kf5-config --path config") Can you check the output of kde4-config for the two versions of qt5 you are testing, see if kdeglobals and oxygenrc are there in both cases, and see whether its content is consistent (colors, gradient) with what you see on screen, and what you want to have for your gtk apps ? On my side I will try compile qt-5.6 (I'm on 5.5 here), to see if there is something fishy, but no guarantee. Best regards, Hugo Dear Hugo, thanks for the immediate reply. Much appreciated. kde4-config --path config results in: /home/hp/.kde/share/config/:/usr/share/kde4/config/:/etc/kde4/share/config/ Both config files look consistent and didn't change in my home (checked with backups, the one of yesterday was produced with the newer Qt installed). I'm setting up a VM now, where I expect to reproduce the problem at hand, and been able to try fixes quickly without disturbing my day to day work. You can compile oxygen-gtk passing -DOXYGEN_DEBUG=1 to cmake. Then you'll get tons of debug output when you start GTK2 apps - including info about config it loads. @Hugo Is kde4-config optional in KF5? It seems to be there with the default install. (In reply to Ruslan Kabatsayev from comment #4) > @Hugo > Is kde4-config optional in KF5? It seems to be there with the default > install. No clue to be honest. I'm still running kde4 (with bits and pieces of kf5) I guess you must have it as long as you have qt4/kde4 apps installed ... Okay, here are some news: the package, that changes behaviour is called libqt5-qttools. If installed, the erroneous effects take place, and vanish, if removed. Confirmed on my desktop and in a VM. Here's the package content: Name : libqt5-qttools Version : 5.6.1 Release : 102.1 Architecture: x86_64 Install Date: Fr 24 Jun 2016 15:41:18 CEST Group : Development/Libraries/X11 Size : 2497346 License : SUSE-LGPL-2.1-with-digia-exception-1.1 or GPL-3.0 Signature : RSA/SHA256, Do 23 Jun 2016 03:47:19 CEST, Key ID 6d65170129e3735a Source RPM : libqt5-qttools-5.6.1-102.1.src.rpm Build Date : Do 23 Jun 2016 03:43:27 CEST Build Host : lamb07 Relocations : (not relocatable) Vendor : obs://build.opensuse.org/home:frispete URL : http://qt.digia.com Summary : Qt 5 QtTools Module Description : Qt is a set of libraries for developing applications. This package contains base tools, like string, xml, and network handling. Distribution: home:frispete:PyQt5 / openSUSE_13.2 -rwxr-xr-x 1 root root 1138488 Jun 23 03:43 /usr/bin/assistant-qt5 -rwxr-xr-x 1 root root 451384 Jun 23 03:43 /usr/bin/designer-qt5 -rwxr-xr-x 1 root root 57112 Jun 23 03:43 /usr/bin/pixeltool-qt5 -rwxr-xr-x 1 root root 69008 Jun 23 03:43 /usr/bin/qcollectiongenerator-qt5 -rwxr-xr-x 1 root root 64800 Jun 23 03:43 /usr/bin/qdbus-qt5 -rwxr-xr-x 1 root root 132744 Jun 23 03:43 /usr/bin/qdbusviewer-qt5 -rwxr-xr-x 1 root root 164560 Jun 23 03:43 /usr/bin/qhelpconverter-qt5 -rwxr-xr-x 1 root root 23192 Jun 23 03:43 /usr/bin/qhelpgenerator-qt5 -rwxr-xr-x 1 root root 61024 Jun 23 03:43 /usr/bin/qtdiag -rwxr-xr-x 1 root root 23016 Jun 23 03:43 /usr/bin/qtpaths -rwxr-xr-x 1 root root 23168 Jun 23 03:43 /usr/bin/qtplugininfo lrwxrwxrwx 1 root root 26 Jun 23 03:43 /usr/lib64/qt5/bin/assistant -> ../../../bin/assistant-qt5 lrwxrwxrwx 1 root root 26 Jun 23 03:43 /usr/lib64/qt5/bin/assistant-qt5 -> ../../../bin/assistant-qt5 lrwxrwxrwx 1 root root 25 Jun 23 03:43 /usr/lib64/qt5/bin/designer -> ../../../bin/designer-qt5 lrwxrwxrwx 1 root root 25 Jun 23 03:43 /usr/lib64/qt5/bin/designer-qt5 -> ../../../bin/designer-qt5 lrwxrwxrwx 1 root root 26 Jun 23 03:43 /usr/lib64/qt5/bin/pixeltool -> ../../../bin/pixeltool-qt5 lrwxrwxrwx 1 root root 26 Jun 23 03:43 /usr/lib64/qt5/bin/pixeltool-qt5 -> ../../../bin/pixeltool-qt5 lrwxrwxrwx 1 root root 37 Jun 23 03:43 /usr/lib64/qt5/bin/qcollectiongenerator -> ../../../bin/qcollectiongenerator-qt5 lrwxrwxrwx 1 root root 37 Jun 23 03:43 /usr/lib64/qt5/bin/qcollectiongenerator-qt5 -> ../../../bin/qcollectiongenerator-qt5 lrwxrwxrwx 1 root root 22 Jun 23 03:43 /usr/lib64/qt5/bin/qdbus -> ../../../bin/qdbus-qt5 lrwxrwxrwx 1 root root 22 Jun 23 03:43 /usr/lib64/qt5/bin/qdbus-qt5 -> ../../../bin/qdbus-qt5 lrwxrwxrwx 1 root root 28 Jun 23 03:43 /usr/lib64/qt5/bin/qdbusviewer -> ../../../bin/qdbusviewer-qt5 lrwxrwxrwx 1 root root 28 Jun 23 03:43 /usr/lib64/qt5/bin/qdbusviewer-qt5 -> ../../../bin/qdbusviewer-qt5 lrwxrwxrwx 1 root root 31 Jun 23 03:43 /usr/lib64/qt5/bin/qhelpconverter -> ../../../bin/qhelpconverter-qt5 lrwxrwxrwx 1 root root 31 Jun 23 03:43 /usr/lib64/qt5/bin/qhelpconverter-qt5 -> ../../../bin/qhelpconverter-qt5 lrwxrwxrwx 1 root root 31 Jun 23 03:43 /usr/lib64/qt5/bin/qhelpgenerator -> ../../../bin/qhelpgenerator-qt5 lrwxrwxrwx 1 root root 31 Jun 23 03:43 /usr/lib64/qt5/bin/qhelpgenerator-qt5 -> ../../../bin/qhelpgenerator-qt5 lrwxrwxrwx 1 root root 19 Jun 23 03:43 /usr/lib64/qt5/bin/qtdiag -> ../../../bin/qtdiag lrwxrwxrwx 1 root root 20 Jun 23 03:43 /usr/lib64/qt5/bin/qtpaths -> ../../../bin/qtpaths lrwxrwxrwx 1 root root 25 Jun 23 03:43 /usr/lib64/qt5/bin/qtplugininfo -> ../../../bin/qtplugininfo drwxr-xr-x 2 root root 0 Jun 23 03:43 /usr/lib64/qt5/plugins/designer -rwxr-xr-x 1 root root 43776 Jun 23 03:43 /usr/lib64/qt5/plugins/designer/libcontainerextension.so -rwxr-xr-x 1 root root 31344 Jun 23 03:43 /usr/lib64/qt5/plugins/designer/libcustomwidgetplugin.so -rwxr-xr-x 1 root root 23008 Jun 23 03:43 /usr/lib64/qt5/plugins/designer/libqquickwidget.so -rwxr-xr-x 1 root root 47864 Jun 23 03:43 /usr/lib64/qt5/plugins/designer/libtaskmenuextension.so -rwxr-xr-x 1 root root 31392 Jun 23 03:43 /usr/lib64/qt5/plugins/designer/libworldtimeclockplugin.so -rw-r--r-- 1 root root 258 Jun 23 03:43 /usr/share/applications/assistant5.desktop -rw-r--r-- 1 root root 254 Jun 23 03:43 /usr/share/applications/designer5.desktop -rw-r--r-- 1 root root 270 Jun 23 03:43 /usr/share/applications/qdbusviewer5.desktop drwxr-xr-x 2 root root 0 Jun 23 03:43 /usr/share/doc/packages/libqt5-qttools -rw-r--r-- 1 root root 1196 Mai 31 12:46 /usr/share/doc/packages/libqt5-qttools/LGPL_EXCEPTION.txt -rw-r--r-- 1 root root 22961 Mai 31 12:46 /usr/share/doc/packages/libqt5-qttools/LICENSE.FDL -rw-r--r-- 1 root root 35645 Mai 31 12:46 /usr/share/doc/packages/libqt5-qttools/LICENSE.GPLv3 -rw-r--r-- 1 root root 26832 Mai 31 12:46 /usr/share/doc/packages/libqt5-qttools/LICENSE.LGPLv21 -rw-r--r-- 1 root root 8178 Mai 31 12:46 /usr/share/doc/packages/libqt5-qttools/LICENSE.LGPLv3 drwxr-xr-x 2 root root 0 Jun 23 03:43 /usr/share/icons/hicolor drwxr-xr-x 2 root root 0 Jun 23 03:43 /usr/share/icons/hicolor/128x128 drwxr-xr-x 2 root root 0 Jun 23 03:43 /usr/share/icons/hicolor/128x128/apps -rw-r--r-- 1 root root 6176 Jun 23 03:43 /usr/share/icons/hicolor/128x128/apps/assistant5.png -rw-r--r-- 1 root root 3889 Jun 23 03:43 /usr/share/icons/hicolor/128x128/apps/designer5.png -rw-r--r-- 1 root root 3353 Jun 23 03:43 /usr/share/icons/hicolor/128x128/apps/qdbusviewer5.png drwxr-xr-x 2 root root 0 Jun 23 03:43 /usr/share/icons/hicolor/32x32 drwxr-xr-x 2 root root 0 Jun 23 03:43 /usr/share/icons/hicolor/32x32/apps -rw-r--r-- 1 root root 1378 Jun 23 03:43 /usr/share/icons/hicolor/32x32/apps/assistant5.png -rw-r--r-- 1 root root 1076 Jun 23 03:43 /usr/share/icons/hicolor/32x32/apps/qdbusviewer5.png Any idea, what could be the culprit here? BTW, the best way to test this is simply running oxygen-gtk-demo. Okay, I was able to resolve this issue today.. The whole mess was due to a patch, that was applied on the package, preferring "qtpaths --paths ConfigLocation" over kde4-config --path config. Sure for bothering you, Hugo and Ruslan, and thank you for your support. Highly appreciated. Just for reference: https://build.opensuse.org/package/show/home:frispete:PyQt5/oxygen-gtk2 |