Ubuntu – How to restart KDE window decorations without loosing the running X session

kdekubuntuwindow-decorationswindow-manager

For graphics editing of some special graphics formats I am using a java program called imagej. This has the annoying bug that one special function tends to kill KDE's window decorations if it has too many images open. At the moment I solve this by switching to a tty and restarting the kdm service. The downside of this solution is that I am kicked out of my running X session which may result in some lost work if there were still unsaved files open.

Is there another way to restart my window decorations without getting logged out of my current X session?

As it may be of importance:

  • Kubuntu 12.04
  • KDE 4.10 from the kubuntu-ppa/backports repo. Same problem already occurred with the stock KDE 4.8.5 from kubuntu 12.04

Best Answer

try kwin --replace or DISPLAY=:0 kwin --replace if you're not in X.
Source

Related Question