Solution
- Open KRunner (default shortcut is Alt + F2)
- Type:
kdesudo kate /etc/xdg/kickoffrc
. Then type your password.
- Before editing you can ensure that
kickoffrc
is really placed there by running find $(echo $XDG_CONFIG_DIRS | sed 's/:/ /g') -name kickoffrc 2>/dev/null
in Konsole. Echoing $XDG_CONFIG_DIRS
will show you directories where this file can be placed.
It seems that on fresh install of Kubuntu 16.04.3 kickoffrc
file does not exist which results in empty favorites list when you create a new user. In such case just paste following lines into it and save:
[Favorites]
FavoriteURLs=firefox.desktop
Otherwise, add firefox.desktop
after the existing *.desktop files listed next to FavoriteURLs=
. Separate it by comma. After new user creation they will appear in the same order as you placed them in /etc/xdg/kickoffrc
. If you want to add some others default favorite applications you can find them in /usr/share/applications/
.
Research
On Kubuntu 17.10 the configuration file of Kickoff (that is the name of the Application Launcher widget) do exists and contains some .desktop entries. Fortunately, they differs from default favorites for kickoff manually added to your desktop. One could find the right configuration file by searching an entry that is present at kickoff added by launching plasma for the first time at a new user account, but not present by default in manually added kickoff widget — for example libreoffice-startcenter.desktop
(using grep -r "libreoffice-startcenter.desktop"
in root directory)
It seems that there is a specification named XDG Base Directory Specification which KDE uses to store its configuration files. As can be read here system-wide configuration is stored by default in /etc/xdg/
directory. Before editing these files one can ensure real system-wide directories by checking the value of XDG_CONFIG_DIRS
environmental variable.
Format of kickoffrc
favorites list is the same as described here.