kwin/kcmkwin/kwincompositing
Vlad Zagorodniy 78ce54f88a [effects] Make scripted effects GHNS-able
Summary:
Currently, if one wants to install a scripted effect from the KDE Store,
the effect won't show up in the Desktop Effects KCM. The reason for that
is kpackagetool5 doesn't know where to install effects (they have to be
installed under ${DATA_DIR}/kwin/effects).

Another problem is that even if the scripted effect is installed in the
right directory (e.g. ~/.local/share/kwin/effects), it won't be listed in
the Desktop Effects KCM because it doesn't have a desktop file in
kservices5 dir. Please notice that the effect will be "visible" for KWin, i.e.
you can enable it by editing kwinrc.

This diff addresses those 2 problems by:
* Adding a PackageStructure plugin for effects (so they are installed
  under kwin/effects/);
* Using KPackage::PackageLoader to get list of scripted effect in the
  Desktop Effects KCM.

Test Plan:
* Installed an effect from the KDE Store, it appeared in the Desktop Effects
  KCM;
* Removed it.

Reviewers: #kwin, mart, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: ngraham, davidedmundson, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D15372
2018-09-28 20:17:30 +03:00
..
qml [kcmkwin] Use QtQuick.Controls 2.0 for Label and TextField 2018-08-15 11:31:00 +03:00
test Remove Qt module declarations in includes 2018-06-05 18:07:23 +01:00
CMakeLists.txt [effects] Make scripted effects GHNS-able 2018-09-28 20:17:30 +03:00
Messages.sh i18n fixes 2014-07-23 03:35:36 +02:00
compositing.cpp [kcmkwin/compositing] Do not write GLPlatformInterface config 2017-04-04 19:38:02 +02:00
compositing.h Drop OpenGL based color correction from KWin 2016-11-22 07:16:51 +01:00
compositing.ui Drop OpenGL based color correction from KWin 2016-11-22 07:16:51 +01:00
config-compiler.h.cmake Initial commit 2014-04-03 07:23:12 +02:00
config-prefix.h.cmake Initial commit 2014-04-03 07:23:12 +02:00
effectconfig.cpp Fix loading of effect config plugins 2015-03-06 13:16:17 +01:00
effectconfig.h [kcmkwin/compositing] Use Effect name as configuration window title 2014-06-12 07:22:17 +02:00
kcmkwineffects.desktop SVN_SILENT made messages (.desktop file) - always resolve ours 2018-09-17 05:41:57 +02:00
kwincompositing.desktop SVN_SILENT made messages (.desktop file) - always resolve ours 2018-07-23 07:12:23 +02:00
kwineffect.knsrc SVN_SILENT made messages (.desktop file) - always resolve ours 2018-07-23 07:12:23 +02:00
main.cpp Fix compile when we use QT_NO_NARROWING_CONVERSIONS_IN_CONNECT flags 2018-09-17 13:43:18 +02:00
model.cpp [effects] Make scripted effects GHNS-able 2018-09-28 20:17:30 +03:00
model.h Convert EffectView to a QQuickWidget 2018-03-05 21:57:33 +01:00