17

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

Three Diag
  • 667
  • 2
  • 6
  • 15

3 Answers3

27

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

$ kquitapp5 plasmashell

and, eventually,

$ plasmashell

to restart, or

$ kstart5 plasmashell

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

Three Diag
  • 667
  • 2
  • 6
  • 15
  • 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 02 '15 at 10:01
  • 3
    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 09 '15 at 07: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 09 '15 at 08: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 09 '15 at 10:52
  • One way to detach a process from terminal to use `nohup`, which serves exactly the purpose – Three Diag Sep 09 '15 at 10:53
  • That's strange, I have been using this trick for ages on various Ubuntu flavors and on Gentoo and it always worked with no tweaking. – Palantir Sep 09 '15 at 14:16
  • What is the `Fx` button? – Kunok Sep 01 '16 at 08:47
  • It means F1-F7 , together w/ ctrl+alt opens tty terminal. – Three Diag Sep 01 '16 at 08:50
  • 1
    `kstart` is not found (FreeBSD-CURRENT). `kstart5` works. – Graham Perrin Jan 28 '19 at 19:28
2

For >=kde5.10 (Kubuntu20.04; plasmashell 5.18.5):

Open a console CtrlAlt+T

login and type:

kquitapp5 plasmashell
kstart5 plasmashell&
abu_bua
  • 10,473
  • 10
  • 45
  • 62
0

After trying all the above and a few others I could not resolve my ongoing annoyance of my toolbars not hiding as set (ie/ auto hide). It doesn't happen all the time and sometimes minimising other apps will fix it. It sometimes blocks essential icons on browser, etc. This happens on both screens (laptop + external). I tried a few work-arounds and the simple solution for me is to set the app in use to keep above others'. This works and allows me to tidy up or finish session for reboot. * I just installedtoggle panel button' (widget) and it works. (note: I have been doing some heavy changing of themes/widgets/icons/fonts/add-ons, etc over the last few weeks and this may be a conflict between components.)