Can I restart the KDE Plasma Desktop without logging out?
In KDE 4, you can do:
killall plasma-desktop #to stop it
kstart plasma-desktop #to restart it
In KDE 5 use:
killall plasmashell #to stop it
kstart plasmashell #to restart it
In KDE > 5.10 use:
kquitapp5 plasmashell
kstart5 plasmashell
Sometimes plasmashell is not responding so kquitapp5
fails after a timeout and you have to get back to killall
. So in a nutshell, I would do :
# For KDE 4
killall plasma-desktop && kstart plasma-desktop
# For KDE 5 < 5.10
killall plasmashell && kstart plasma-desktop
# For KDE > 5.10
kquitapp5 plasmashell || killall plasmashell && kstart5 plasmashell
Remarks :
- If you are not sure which KDE version your run,
kinfocenter --version
will tell you. - you can skip the
kquitapp5 plasmashell ||
part if you don't want to be stuck in the timeout whenplasmashell
is not responding.
In KDE5 use "kstart plasmashell" to restart the plasmashell as a service instead of plasmashell &. If you use it that way it 's run as an independed service not connected to the current terminal session (meaning you can close the terminal without the process getting terminated). TLDR:
KDE5 (in Terminal):
killall plasmashell
kstart plasmashell
Well I didn't expect this to work (and it's not exactly what the question asks for) but pressing Alt+F2 and running:
kwin --replace
This reloads KDE's compositor and that seems to fix the flickering. I guess it's a factor into my particular issue.