How can I configure the applications menu in KDE?

8,447

Plasma 5 application menu (Kickoff)

Plasma 5 Kickoff menu is dynamic menu. It is composed from the application desktop files.

The KDE has Menu Editor:

KMenuEdit allows editing the menu of KDE application launchers.

KMenuEdit can be started either by right mouse button clicking the application launcher button on the panel and choosing Edit Applications..., or by typing kmenuedit in the KRunner line...

More from the KDE Menu Editor Handbook. Online: https://docs.kde.org/trunk5/en/kde-workspace/kmenuedit/index.html

Plasma 5.14 Kickoff Computer tab

The Computer tab applications are not editable with the KDE Menu Editor. The applications are read from the plasma configuration file. Older plasma have the 'kickoffrc' file.

As the kickoffrc was deprecated the settings were transfered to the plasma configuration file: $HOME/.config/plasma-org.kde.plasma.desktop-appletsrc.

The Computer tab applications are under the 'systemApplications'.

The user can edit the text file plasma-org.kde.plasma.desktop-appletsrc by

0) Backup the plasma-org.kde.plasma.desktop-appletsrc

1) Stop the plasmashell by executing the command (krunner): 'kquitapp5 plasmashell'

2) Edit the plasma-org.kde.plasma.desktop-appletsrc line: 'systemApplications='

3) Save the plasma-org.kde.plasma.desktop-appletsrc

4) Restart the plasmashell with the command (krunner): 'plasmashell'

enter image description here

KDE System Monitor (org.kde.systemmonitor.desktop) added to the 'systemApplications'

Testing with the Ubuntu 18.10 (Cosmic Cuttlefish) - Plasma 5.13

Testing done with the clean plasma-org.kde.plasma.desktop-appletsrc.

There is no 'systemApplications=' line.

Using copy and paste from https://userbase.kde.org/KDE_System_Administration/PlasmaDesktopScripting#org.kde.plasma.kickoff

enter image description here enter image description here enter image description here

Adding few more items to the systemApplications...

...seems to work BUT the 'org.kde.systemmonitor.desktop' doesn't work with the CC / Plasma 5.13 at here. The 'org.kde.systemmonitor.desktop' will disappear from the systemApplications. The 'org.kde.ksysguard.desktop' seems to work.

enter image description here

Share:
8,447

Related videos on Youtube

Дмитрий Полянин
Author by

Дмитрий Полянин

Преподаватель по программированию C#, JavaScript, VueJs, Html + Css, SVG. Моя Школа разработчика - https://okeanij.ru Instagram - https://instagram.com/developer_school Telegram - https://t.me/developer_school Мой Telegram - https://t.me/Okeanij

Updated on September 18, 2022

Comments

  • Дмитрий Полянин
    Дмитрий Полянин over 1 year

    How can I configure the applications menu in KDE (Menu -> Computer section)?

    I want to add some items such as: mount and system monitor.

    enter image description here

    Updated:

    What I do.

    Open file .config/plasma-org.kde.plasma.desktop-appletsrc

    I have this section:

    [Containments][24][Applets][61][Configuration][General]
    favoritesPortedToKAstats=true
    icon=/usr/share/pixmaps/ubuntu-logo.png
    menuItems=bookmark:t,application:t,computer:t,leave:t,oftenUsed:f,used:f
    showAppsByName=true
    useExtraRunners=false
    

    And I replace with this on killed plasmashell with

    [Containments][24][Applets][61][Configuration][General]
    favoritesPortedToKAstats=true
    icon=/usr/share/pixmaps/ubuntu-logo.png
    menuItems=bookmark:t,application:t,computer:t,leave:t,oftenUsed:f,used:f
    systemApplications=systemsettings.desktop,org.kde.kinfocenter.desktop,org.kde.discover.desktop,org.kde.muon,skype_skypeforlinux,org.kde.konsole
    showAppsByName=true
    useExtraRunners=false
    

    I added some apps in the end of systemApplications, see code above: org.kde.muon,skype_skypeforlinux,org.kde.konsole this names I got from menu items when click to edit them, copy and paste here.

    And restart plasmashell. And nothing changes.

    I go to this file, and see that 1 code rewoke, and line

    systemApplications=systemsettings.desktop,org.kde.kinfocenter.desktop,org.kde.discover.desktop,org.kde.muon,skype_skypeforlinux,org.kde.konsole
    

    Disapiared tottaly.
    Mabe its cached somewhere or my added apps It did not like...

    • user26687
      user26687 over 5 years
      The desktop files need the .desktop extension: standards.freedesktop.org/desktop-entry-spec/latest/… . Try to add it .ie: org.kde.muon.desktop,skype_skypeforlinux.desktop,org.kde.kon‌​sole.desktop.
    • Дмитрий Полянин
      Дмитрий Полянин over 5 years
      Solved with use of adding .desktop at the end. Mabe you add it in your answer?
  • Дмитрий Полянин
    Дмитрий Полянин over 5 years
    I find this file, but no systemApplications section found. I tried to add it manually after menuItems, and after resel plasmashell all aplications disapiared in this section at all, ecxept one - "run command".
  • Дмитрий Полянин
    Дмитрий Полянин over 5 years
    After adding this strig and reseting plasma shell, all conent on systemApplications disapieared and gone to void systemApplications=
  • Дмитрий Полянин
    Дмитрий Полянин over 5 years
    My plasmashell veriosn is 5.13.5
  • user26687
    user26687 over 5 years
    I tested with the CC/Plasma 5.13. Added the results to above.
  • Дмитрий Полянин
    Дмитрий Полянин over 5 years
    Always disapiared what I do. I wrote in question. Thank you for trying to help me, I don't know what I am doing wrong, or there is some problems with kde-plazma...
  • ThunderBird
    ThunderBird almost 3 years
    Please, format your answer well.
  • Bruce
    Bruce about 2 years
    PlasmaDesktopScripting has moved here: develop.kde.org/docs/extend/plasma/scripting