I want to restart my plasma desktop/shell without rebooting my machine and was looking for a way to do so. Is there some konsole command or something that would do just that?
Asked
Active
Viewed 4.9k times
6 Answers
21
Kill plasmashell and start it in the background.
killall plasmashell
plasmashell > /dev/null 2>&1 & disown
-
2This is fine as long as you don't mind
plasmashellspewing a bunch of logging information to your terminal. You also won't be able to close the terminal, or else the plasma shell will be killed. Better to usekstart5 plasmashellas someone else suggested. – Psychonaut Mar 03 '17 at 18:51 -
@Psychonaut While
kstart5would be the more "correct" solution, plasmashell would not be killed as a result of closing the terminal as we start it in the background. – Mar 04 '17 at 07:07 -
1Putting the process in the background has no effect unless you also disown it. It will be killed along with its parent terminal. – Psychonaut Mar 04 '17 at 10:46
-
-
1
sh: disown: not foundbut the line had the required effect; I can then exit from all Konsole windows andplasmashellcontinues to run.FreeBSD 12.0-CURRENT #0 r320869: Mon Jul 10 13:57:55 UTC 2017 root@releng3.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC– Graham Perrin Aug 28 '17 at 18:24
3
I'm having trouble with KDE right now. Sometimes it boots in a black screen, no nothing.
But if you type ALT+F2 and open up a konsole, you can see KDE is just running fine without plasmashell. No plasmashell in the process table, no need to kill it. In my case, just typing:
kstart5 plasmashell
will solve the case.
Also, no need to tell it to go on background (or disown it), because it will do just that anyway. You can close the konsole and it will keep running just fine.
DrBeco
- 2,005
3
I am running plasmashell 5.26.4 and the easiest way to restart it is
plasmashell --replace &
stollr
- 202
-
1
-
But if I close the terminal, plasmashell goes down. Plasma version 5.26.5 – shmu Mar 19 '23 at 20:33
-
@shmu Did you forget the
&at the end of the command? For me it works even if I close the terminal – stollr Mar 20 '23 at 15:52 -
-1
In Debian 8 it's:
killall plasma-desktop && plasma-desktop
to restart
Journeyman Geek
- 129,178
n00b
- 1
pkill plasmashell && kstart5 plasmashellworks – alchemy Feb 22 '22 at 21:53