! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Qt apps don't use correct GTK and icon theme
Status:
RESOLVED: DUPLICATE
Product:
Xfce4-settings
Component:
Appearance Settings

Comments

Description Yan Pas 2015-03-04 19:09:20 CET
Created attachment 6031 
clementine

After upgrading to 4.12 in Xubuntu (ppa:xubuntu-dev/xfce-4.12) QT apps are ugly. They don't understand gtk theme. For instance clementine scerenshot
Comment 1 Thaddaeus Tintenfisch editbugs 2015-03-11 13:20:59 CET
Did you upgrade any Qt packages also?

You can easily resolve this issue with qtconfig-qt4. Just change the GUI style to "Gtk+" and Qt applications should look fine again.
Comment 2 Yan Pas 2015-03-11 18:43:13 CET
I have tried to install this package from xubuntu default ppa, but it didn't make any effect
Comment 3 Thaddaeus Tintenfisch editbugs 2015-03-11 18:56:38 CET
The package is named "qt4-qtconfig", the actual program "qtconfig-qt4".

Please see https://launchpad.net/bugs/1382741 .
Comment 4 Yan Pas 2015-03-12 12:07:22 CET
According to this this isn't soolution http://www.webupd8.org/2015/03/install-xfce-412-in-xubuntu-1404-or.html
Comment 5 Yan Pas 2015-03-12 22:48:48 CET
Created attachment 6071 
Screeenshot

Icons of clementine aren't GTK, that's the bug. Is it the bug that from now users are manually to set GTK+ theme in qt4-config?
Comment 6 Thaddaeus Tintenfisch editbugs 2015-03-13 10:46:48 CET
There might be a bug if the GTK theme was applied properly before the upgrade to 4.12. However, Xfce does nothing special to ensure that Qt/KDE applications use a specific GTK or icon theme. Ideally, these apps should be able to detect the desktop environment and adjust their appearance accordingly.
Comment 7 Yan Pas 2015-03-13 15:05:56 CET
I see, but I have done nothing but upgrading to 4.12. Maybe theme settings causes this
Comment 8 Thaddaeus Tintenfisch editbugs 2015-03-13 17:19:26 CET
From the comment section [1] of the previously linked website:

Create (or modify) ~/.kde/share/config/kdeglobals so that it contains e.g.:

[Icons]
Theme=elementary-xfce-darker

You might need to clear the icons cache afterwards:
rm /var/tmp/kdecache-$USER/icon-cache.kcache


[1] http://www.webupd8.org/2015/03/install-xfce-412-in-xubuntu-1404-or.html#comment-1892101121
Comment 9 Yan Pas 2015-03-13 22:34:34 CET
Didn't help. Still default icons
Comment 10 Yan Pas 2015-04-04 12:04:44 CEST
Guess xfsettingsd has lost the ability to configure QT settings since 4.12
Comment 11 Along Bongosong 2015-04-22 01:55:42 CEST
Can confirm that this is an issue using Xfce 4.12 on Xubuntu 14.04.
Comment 12 Yan Pas 2015-05-06 18:32:28 CEST
Workaround from http://www.webupd8.org/2015/03/install-xfce-412-in-xubuntu-1404-or.html COMMENTS

Create (or modify) ~/.kde/share/config/kdeglobals so that it contains e.g.:

[Icons]
Theme=elementary-xfce-darker

You might need to clear the icons cache afterwards:
rm /var/tmp/kdecache-$USER/icon-cache.kcache
 • Reply•Share ›
Avatar
Yan Pashkovsky b3nmore • 21 hours ago
Did it work for you?
 • Edit• Reply•Share ›
Avatar
b3nmore Yan Pashkovsky • 11 hours ago
Yes it does. All kde/qt apps I use (amarok, digikam, k3b, audex) use the correct icon theme.
Make sure, that the theme name you write into kdeglobals concur with the folder name of the icon theme. For xubuntu icon themes are stored under "/usr/share/icons". And clear the cache file after you've changed the theme name.


-----------
And overthere is workaround for qt style. I haven't tried workaround for icons
Comment 13 Along Bongosong 2015-05-06 21:55:50 CEST
(In reply to yanpaso from comment #12)
> Workaround from
> http://www.webupd8.org/2015/03/install-xfce-412-in-xubuntu-1404-or.html
> COMMENTS
> 
> Create (or modify) ~/.kde/share/config/kdeglobals so that it contains e.g.:
> 
> [Icons]
> Theme=elementary-xfce-darker
> 
> You might need to clear the icons cache afterwards:
> rm /var/tmp/kdecache-$USER/icon-cache.kcache
>  • Reply•Share ›
> Avatar
> Yan Pashkovsky b3nmore • 21 hours ago
> Did it work for you?
>  • Edit• Reply•Share ›
> Avatar
> b3nmore Yan Pashkovsky • 11 hours ago
> Yes it does. All kde/qt apps I use (amarok, digikam, k3b, audex) use the
> correct icon theme.
> Make sure, that the theme name you write into kdeglobals concur with the
> folder name of the icon theme. For xubuntu icon themes are stored under
> "/usr/share/icons". And clear the cache file after you've changed the theme
> name.
> 
> 
> -----------
> And overthere is workaround for qt style. I haven't tried workaround for
> icons

this doesn't work for the icons. tried it.
Comment 14 Yan Pas 2015-07-17 02:40:24 CEST
https://wiki.archlinux.org/index.php/Uniform_Look_for_Qt_and_GTK_Applications#Using_a_GTK.2B_icon_theme_in_Qt_apps
This didn't help as well. Are there non-debian based distro users? Do you meet this issue? As far as I remember Manjaro doesn't have this problem, so maybe there is a broken package is ubuntu repos
Comment 15 Thaddaeus Tintenfisch editbugs 2015-07-17 10:36:53 CEST
The following report most likely explains what is going on and why Debian based distribution are affected:

https://bugzilla.xfce.org/show_bug.cgi?id=12012
Comment 16 Yan Pas 2015-07-17 15:41:41 CEST
Yes, it's xfce4-session fault. I've compiled and installed new from git, but can't start Xserver. So i've tried with 4.10 from trusty repos and QT apps are OK
Comment 17 Yan Pas 2015-07-17 16:15:34 CEST
Hmm, stangely. When I did sudo checkinstall -D - xfce4-session wasn't able to start, but after sudo make install works fine. Bug may be closed?
Comment 18 Thaddaeus Tintenfisch editbugs 2015-07-17 18:53:16 CEST
Thanks for testing it. I'll mark this report as duplicate then.

*** This bug has been marked as a duplicate of bug 12012 ***

Bug #11643

Reported by:
Yan Pas
Reported on: 2015-03-04
Last modified on: 2015-07-17

People

Assignee:
Nick Schermer
CC List:
5 users

Version

Version:
4.12.0

Attachments

clementine (86.12 KB, image/png)
2015-03-04 19:09 CET , Yan Pas
no flags
Screeenshot (340.12 KB, image/png)
2015-03-12 22:48 CET , Yan Pas
no flags

Additional information