Opened 3 years ago

Closed 3 years ago

#12206 closed defect (fixed)

Add Plasma's KCMS directory to the QT Plugin Path

Reported by: Douglas R. Reno Owned by: Douglas R. Reno
Priority: normal Milestone: 9.0
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description

As noted here:

http://lists.linuxfromscratch.org/pipermail/blfs-dev/2019-June/036231.html

We need to add $KF5_PREFIX/lib/plugins/kcms to the QT_PLUGIN_PATH.

This will allow systemsettings5 to find plugins.

Change History (5)

comment:1 by Bruce Dubbs, 3 years ago

Milestone: 8.59.0

Milestone renamed

comment:2 by Douglas R. Reno, 3 years ago

Type: enhancementdefect

comment:3 by Douglas R. Reno, 3 years ago

Owner: changed from blfs-book to Douglas R. Reno
Status: newassigned

comment:4 by Douglas R. Reno, 3 years ago

FTR, here's a way to reproduce this in the future:

1) Open KDE System Settings 2) Go to Desktop Effects 3) Check the logs

Aug 07 22:53:40 KANGA /usr/libexec/gdm-x-session[665]: KActivitiesStats( 0x1143cc0 ) ResultModelPrivate::onResultScoreUpdated  result added: "kcm:kwintabbox.desktop" score: 0 la>
Aug 07 22:54:09 KANGA /usr/libexec/gdm-x-session[665]: org.kde.kcoreaddons: Error loading plugin "kcm_workspace" "The shared library was not found."
Aug 07 22:54:09 KANGA /usr/libexec/gdm-x-session[665]: Plugin search paths are ("/opt/kf5/lib/plugins", "/opt/qt-5.13.0/plugins", "/opt/kf5/bin")
Aug 07 22:54:09 KANGA /usr/libexec/gdm-x-session[665]: The environment variable QT_PLUGIN_PATH might be not correctly set

These are in fact in /opt/kf5/lib/plugins/kcms:

renodr [ /opt/kf5/lib/plugins/kcms ]$ ls
kcm_cursortheme.so   kcm_energyinfo.so          kcm_fonts.so  kcm_kwin_virtualdesktops.so  kcm_lookandfeel.so  kcm_plymouth.so    kcm_splashscreen.so  kcm_workspace.so
kcm_desktoptheme.so  kcm_fileindexermonitor.so  kcm_icons.so  kcm_launchfeedback.so        kcm_nightcolor.so   kcm_pulseaudio.so  kcm_translations.so

For some reason, a large chunk of the system settings modules aren't inside of the normal plugin path. This'll get fixed by adding $KF5_PREFIX/lib/plugins/kcms to the QT_PLUGIN_PATH in /etc/profile.d/kf5.sh (for /opt configurations only)

comment:5 by Douglas R. Reno, 3 years ago

Resolution: fixed
Status: assignedclosed

Fixed at r21919

Note: See TracTickets for help on using tickets.