設定 Desktop Layout / Favorite Application

相關連結

完整範例

設定片段

[Containments][2][Applets][3]
immutability=1
plugin=org.kde.plasma.kickoff

[Containments][2][Applets][3][Configuration]
PreloadWeight=100

[Containments][2][Applets][3][Configuration][Configuration/General]
showAppsByName=true

[Containments][2][Applets][3][Configuration][General]
favorites=applications:org.kde.dolphin.desktop,applications:org.kde.konsole.desktop,applications:sublime_text.desktop,applications:org.kde.kate.desktop,preferred://browser,applications:systemsettings.desktop,applications:org.kde.discover.desktop,applications:pcmanfm-qt.desktop,applications:sakura.desktop
favoritesDisplay=1
favoritesPortedToKAstats=false

[Containments][2][Applets][3][Configuration][Shortcuts]
global=Alt+F1

[Containments][2][Applets][3][Shortcuts]
global=Alt+F1

關於 Favorite Application 主要的設定片段如下

[Containments][2][Applets][3][Configuration][General]
favorites=applications:org.kde.dolphin.desktop,applications:org.kde.kate.desktop,preferred://browser,applications:org.kde.konsole.desktop,applications:systemsettings.desktop,applications:org.kde.discover.desktop,applications:pcmanfm-qt.desktop,applications:sublime_text.desktop,applications:sakura.desktop
favoritesDisplay=1
favoritesPortedToKAstats=false

注意事項

  • 要將「favoritesPortedToKAstats=false」,這裡先設定「false」,觀察到「KDE Plasma」啟動後,會被自動設為「true」
  • 關於「favoritesDisplay=1」指的是「How to display favorites: 0 = Grid, 1 = List」,可以對照「layout-templates / contents/ layout.js」。

指令操作步驟

systemctl --user stop plasma-kactivitymanagerd.service

rm ~/.local/share/kactivitymanagerd/ -rf


systemctl --user stop plasma-plasmashell.service


install -Dm644 "./plasma-org.kde.plasma.desktop-appletsrc" "${HOME}/.config/plasma-org.kde.plasma.desktop-appletsrc"


systemctl --user start plasma-plasmashell.service

systemctl --user start plasma-kactivitymanagerd.service

Dump

qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.dumpCurrentLayoutJS

相關連結