Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
share|improve this question
up vote 6 down vote accepted

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

share|improve this answer
Thanks a lot, that works. Only one short addendum: it's useful to put an ampersand & behind the commands if one does not want to block this console for the rest of the session. – Benedikt Bauer Apr 19 '13 at 12:13
you're right, or you could just run the command in krunner if you have access to it. – domenico Apr 19 '13 at 13:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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