Description of problem: Qt4 Designer doesn't find kdewidgets.so in /usr/lib/kde4/plugins/designer Version-Release number of selected component (if applicable): qt4-devel-4.3.1-3.fc7 How reproducible: Always Steps to Reproduce: 1. Install qt4-devel-4.3.1-3.fc7 and kdelibs4-devel-3.93.0-3.fc7. 2. Start designer-qt4. Actual results: No KDE widgets listed. Expected results: KDE widgets listed. Additional info: Workaround: copy kdewidgets.so to /usr/lib/qt4/plugins/designer as my kdelibs4 RPMs originally did.
Arg, there doesn't seem to be a simple conf option for this (anymore), apparently only way to munge this is to set env var QT_PLUGIN_PATH Offhand, simplest thing to do here is to for the kde4 pkgs to include a /etc/profile.d/kde4.sh that sets QT_PLUGIN_PATH (and/or appends) to include /usr/lib/kde4/plugins/designer I 'spose we could include this in the qt4 packaging too, heck, I'll just do that.
Arg, to be multilib-friendly, this has to use something like kde4-config to determine the path at runtime, e.g. QT_PLUGIN_PATH=`kde4-config --prefix`/lib`kde4-config --libsuffix` or rpm queries for %{?_kde_libdir} maybe.
Something like: if [ -z "$QT_PLUGIN_PATH" ]; then KDE4_LIBDIR=`/bin/rpm --eval '%{?_kde4_libdir}%{!?_kde4_libdir:%{_libdir}}' 2>/dev/null` QT_PLUGIN_PATH=${KDE4_LIBDIR}/kde4/plugins && export QT_PLUGIN_PATH fi ? Would you rather this be in qt4 or kdelibs4 packaging? (I'd lean toward the latter).
Oh, I'll put this into kdelibs4 then.
https://www.redhat.com/archives/fedora-extras-commits/2007-September/msg02323.html
Whoops, actually installing kde4.sh and kde4.csh would help. ;-) I didn't notice that it wasn't being installed for the kdelibs4 case. Fixing... There's one drawback with this approach though: the search path will not get instantly applied, only when the profile is read in.
Actually tested version: https://www.redhat.com/archives/fedora-extras-commits/2007-September/msg02340.html