Add panel favorites for KDE (fixes #123)

This commit is contained in:
Daniel Ruiz de Alegría 2021-04-08 17:07:39 +02:00
parent e4850b39fb
commit c0f1dc24fd
No known key found for this signature in database
GPG Key ID: 59667A77E8BFCB6C

View File

@ -0,0 +1,10 @@
panelIds.forEach(panelId => {
const panel = panelById(panelId);
panel.widgetIds.forEach(widgetId => {
const widget = panel.widgetById(widgetId);
if (widget.type === 'org.kde.plasma.icontasks') {
widget.currentConfigGroup = ["General"];
widget.writeConfig('launchers', 'applications:org.kde.konsole.desktop,applications:org.kde.dolphin.desktop,applications:org.kde.kwrite.desktop,applications:firefox-esr.desktop');
}
})
})