Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

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

I'm running Debian Squeeze and removed Metacity in favor of Mutter. How do I avoid having to run mutter --replace each time I start Xorg (GNOME)?

share|improve this question
up vote 4 down vote accepted

Press Alt + F2 and enter gconf-editor. Navigate the tree menu to desktop > gnome > session > required-components. Now, replace the windowmanager key with the window manager of your choice. Just replace gnome-wm (or metacity) with mutter.

Another possible solution:

You could add mutter --replace to System > Preferences > Startup Applications which opens gnome-session-properties program:

enter image description here

share|improve this answer
I tried that and it doesn't work. Maybe it's a bug? – Tshepang Mar 7 '11 at 12:48
I'm actually having the same problem. And no, editing gconf didn't work. – Shadur Mar 7 '11 at 12:51
You could add mutter --replace to System > Preferences > Startup Applications – Dayjay Mar 7 '11 at 12:53

Under Debian, if you want to change the window manager for all users, you can run (as root):

update-alternatives --config x-window-manager

and select the window manager you want as the default. However, this might only work if you're not using a desktop environment (e.g. GNOME or KDE).

If you're using GNOME, you can tell it which window manager you want by putting the following in ~/.gnomerc:

export WINDOW_MANAGER=/usr/bin/mutter
share|improve this answer
That file doesn't exists in my home dir. Must I create it? – Tshepang Mar 8 '11 at 18:06
@tshepang yes, create it. This answer is is the correct method on Debian. – bahamat Mar 8 '11 at 18:24
This doesn't work for me. I still get metacity as window manager. – Tshepang Mar 8 '11 at 22:25

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.