Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 358299 - kde-4.6.x does not set QT_PLUGIN_PATH correctly
Summary: kde-4.6.x does not set QT_PLUGIN_PATH correctly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 361331 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-03-10 21:08 UTC by Jouni Rinne
Modified: 2011-04-25 17:28 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jouni Rinne 2011-03-10 21:08:13 UTC
Contrary to the earlier versions, Qt-4.7.x and KDE-4.6.x both seems to depend on QT_PLUGIN_PATH environment variable to find, well, Qt plugins. It is set by the startkde script, which is fine if you are using the whole KDE desktop, but if you are just using KDE apps with a window manager like Fluxbox or Awesome, QT_PLUGIN_PATH is not set; consequently, KDE apps cannot find its own widget styles (oxygen, qtcurve etc.) and fall back to using builtin Qt styles. The same applies to pure Qt4 apps. Also, the KDE file selector cannot be found, the apps fall back to plain Qt4 file selector.

The variable QT_PLUGIN_PATH should be set to /usr/lib64/kde4/plugins (or /usr/lib/kde4/plugins in non-multilib systems) to work. I chose to set it up in /etc/env.d/44qt4, but it is not necessarily the best place (it may mess up Qt for people who install only Qt, not KDE). Maybe it should be set by a kdelibs env file?

Of course users *could* set the variable for themselves, but at least they should be informed that it is needed. I spent several days scratching my head upon this matter after updating KDE from 4.4 series to 4.6.1...
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2011-04-08 20:21:51 UTC
*** Bug 361331 has been marked as a duplicate of this bug. ***
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2011-04-10 19:47:04 UTC
Fixed in kdelibs-4.6.2-r2
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2011-04-13 22:23:06 UTC
Fix does not work properly yet, needs some more work.
Comment 4 Toralf Förster gentoo-dev 2011-04-17 10:27:46 UTC
Hhm, as a common user I've now :

$> env | grep QT
QT_PLUGIN_PATH=/usr/lib/kde4/plugins/:${QT_PLUGIN_PATH}:/home/tfoerste/.kde4/lib/kde4/plugins/:/usr/lib/kde4/plugins/
Comment 5 Andreas K. Hüttel archtester gentoo-dev 2011-04-18 20:15:41 UTC
Kind of fixed now... we just overwrite a previous setting of QT_PLUGIN_PATH in a kde env.d file. 

Seems like qt 4.7.2 does not even set the variable anymore.
Comment 6 Andreas K. Hüttel archtester gentoo-dev 2011-04-18 20:31:43 UTC
and now an even better solution is in (proper concatenation)