[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-09 09:28:58 +00:00
|
|
|
[Desktop Entry]
|
|
|
|
Name=KWin Effect
|
2018-09-30 03:55:57 +00:00
|
|
|
Name[ca]=Efecte del KWin
|
|
|
|
Name[ca@valencia]=Efecte del KWin
|
|
|
|
Name[es]=Efecto de KWin
|
|
|
|
Name[nl]=KWin-effect
|
2018-10-02 03:58:17 +00:00
|
|
|
Name[pt]=Efeito do KWin
|
2018-09-30 03:55:57 +00:00
|
|
|
Name[sv]=Kwin-effekt
|
|
|
|
Name[uk]=Ефект KWin
|
|
|
|
Name[x-test]=xxKWin Effectxx
|
[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-09 09:28:58 +00:00
|
|
|
Type=Service
|
|
|
|
X-KDE-ServiceTypes=KPackage/PackageStructure
|
|
|
|
X-KDE-Library=kwin_packagestructure_effect
|
|
|
|
|
|
|
|
X-KDE-PluginInfo-Author=Vlad Zagorodniy
|
|
|
|
X-KDE-PluginInfo-Email=vladzzag@gmail.com
|
|
|
|
X-KDE-PluginInfo-Name=KWin/Effect
|
|
|
|
X-KDE-PluginInfo-Version=1
|