How do I restart KDE5 interface from the command line without having to do a logout?


In a terminal (ctrl+alt+Fx if KDE is stuck to use tty) type :

$ kquitapp5 plasmashell

and eventually

$ plasmashell

to restart or

$ kstart plasmashell

if you want to be able to logout of the tty.

  • 3
    ALT + F2 is a good place to input that, provided the desktop still kind-of works. I have the taskbar freezing from time to time, but the quick launcher still works. In that case I input "killall plasmashell && plasmashell". I didn't know about kquitapp5. – Palantir Sep 2 '15 at 10:01
  • 2
    The thing is, if you have the desktop still working, then "launch command" (ALT+F2) is fine. If you do it in the terminal, you are forced to keep the terminal up (or launch the command with nohup). kquitapp5 forces the "application interrupted pop up" and allows you to restart it. I do it for the same reason as you (task bar freezing) – Three Diag Sep 9 '15 at 7:02
  • Good to know. If you want to close a terminal with a running foreground task without killing it, in the terminal you can hit CTRL+Z to freeze the task and revert to bash, then enter bg to push it to the background. Then you can safely close the shell. – Palantir Sep 9 '15 at 8:32
  • That is not true in general, I am not even sure it is true in Ubuntu by default. For example, in Arch Linux (I am not currently on ubuntu to test), using the gnome terminal emulator, pushing to the bg and then closing the terminal kills all the processes associated with it. – Three Diag Sep 9 '15 at 10:52
  • One way to detach a process from terminal to use nohup, which serves exactly the purpose – Three Diag Sep 9 '15 at 10:53

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.