FS#51325 - [kcolorchooser] Doesn't start in XFCE

Attached to Project: Arch Linux
Opened by wonder world (wonderworld) - Tuesday, 11 October 2016, 15:36 GMT
Last edited by Antonio Rojas (arojas) - Thursday, 13 October 2016, 16:56 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Antonio Rojas (arojas)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

For some time now kcolorchooser fails to start in my xfce-environment. It used to work just fine a few updates ago.
sadly I can't remember when it stopped working, but it must have been around May/June when i noticed the problem.

It works fine if I login to my KDE-installation and start it there.
Other KDE applications work just fine in XFCE (konversation, kaffeine, yakuake, etc.)

When starting it, it quits instantly without any output on console.

Using the binary from console with -h or --version works and shows help and version info.

Here is a strace of running it: http://pastebin.com/jFsKpG84

Please don't hestitate to ask if you need more info.
This task depends upon

Closed by  Antonio Rojas (arojas)
Thursday, 13 October 2016, 16:56 GMT
Reason for closing:  Fixed
Additional comments about closing:  kcolorchooser 16.08.2-1
Comment by Antonio Rojas (arojas) - Tuesday, 11 October 2016, 17:07 GMT
I guess this is kind of expected. Kcolorchooser is just a wrapper around Qt's color picker. If you are in a GTK desktop (such as XFCE) Qt will use the GTK platform plugin, and try to open the GTK color picker instead. Since obviously this can't be embedded in a KDE application, it fails.
Please report this upstream to see if they can come up with a fix, but there's nothing we can do from our side. As a workaround, run it with QT_QPA_PLATFORMTHEME=kde
Comment by wonder world (wonderworld) - Tuesday, 11 October 2016, 17:15 GMT
Thank you for the explanation and the workaround. I didn't realize it was just a wrapper because it used to work just fine some time ago.
Comment by Antonio Rojas (arojas) - Tuesday, 11 October 2016, 17:25 GMT
kcolorchooser has only recently been ported to Qt5. Anyway, it turns out this has an easy fix, I've submitted a patch upstream https://git.reviewboard.kde.org/r/129151/

Loading...