[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
|
2019-07-13 03:18:09 +00:00
|
|
|
Name[ca@valencia]=Efecte de KWin
|
2019-05-08 03:51:51 +00:00
|
|
|
Name[da]=KWin-effekt
|
2018-10-08 04:07:21 +00:00
|
|
|
Name[de]=KWin-Effekt
|
2018-10-20 04:05:01 +00:00
|
|
|
Name[el]=Εφέ KWin
|
2018-10-28 03:59:42 +00:00
|
|
|
Name[en_GB]=KWin Effect
|
2018-09-30 03:55:57 +00:00
|
|
|
Name[es]=Efecto de KWin
|
2019-06-09 03:13:32 +00:00
|
|
|
Name[eu]=KWin efektua
|
2018-11-29 04:32:08 +00:00
|
|
|
Name[fi]=KWin-tehoste
|
2018-10-17 04:38:09 +00:00
|
|
|
Name[fr]=Effet KWin
|
2018-10-22 04:00:59 +00:00
|
|
|
Name[gl]=Efecto de KWin
|
2018-10-07 04:07:19 +00:00
|
|
|
Name[id]=KWin Effect
|
2018-10-03 04:13:05 +00:00
|
|
|
Name[it]=Effetto di KWin
|
2019-04-12 03:58:07 +00:00
|
|
|
Name[ko]=KWin 효과
|
2018-09-30 03:55:57 +00:00
|
|
|
Name[nl]=KWin-effect
|
2018-10-08 04:07:21 +00:00
|
|
|
Name[nn]=KWin-effekt
|
2019-01-14 04:39:00 +00:00
|
|
|
Name[pl]=Efekt KWin
|
2018-10-02 03:58:17 +00:00
|
|
|
Name[pt]=Efeito do KWin
|
2018-10-04 03:56:51 +00:00
|
|
|
Name[pt_BR]=Efeito do KWin
|
2018-10-07 04:07:19 +00:00
|
|
|
Name[ru]=Эффект диспетчера окон
|
2018-12-28 04:34:06 +00:00
|
|
|
Name[sk]=Efekty KWin
|
2018-09-30 03:55:57 +00:00
|
|
|
Name[sv]=Kwin-effekt
|
|
|
|
Name[uk]=Ефект KWin
|
|
|
|
Name[x-test]=xxKWin Effectxx
|
2018-10-10 04:54:14 +00:00
|
|
|
Name[zh_CN]=KWin 效果
|
2018-11-01 04:58:11 +00:00
|
|
|
Name[zh_TW]=KWin 效果
|
[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
|