How to change my default Window Manager?

hi all,
I wanna to change my default Window Manager from Metacity to Compiz-Fusion. I have searched this forum and Google and got one solution, add this line into ~/.xinitrc :
Code:
export WINDOW_MANAGER=/usr/local/bin/compiz
But I tried that and there is no effect.
My whole ~/.xinitrc is :
Code:
[bear@bear /usr/home/bear]$ cat ./.xinitrc 
export LANG=zh_CN.UTF-8
export WINDOW_MANAGER=/usr/local/bin/compiz
exec gnome-session
[bear@bear /usr/home/bear]$

Could you help me?
BTW:I wanna change default window manager is while I starting compiz with cmdline:
Code:
compiz --replace --sm-disable --ignore-desktop-hints ccp &
emerald --replace &
I will got a lot of error messages in tty1 and these messages repeat constantly until I terminate my Xorg :
Code:
Window manager warning: Failed to read saved session file /home/bear/.config/met
acity/sessions/108d3656ea172b26f127485085969296200000040160015.ms: Failed to ope
n file '/home/bear/.config/metacity/sessions/108d3656ea172b26f127485085969296200
000040160015.ms': No such file or directory
Window manager warning: Screen 0 on display ":0.0" already has a window manager;
 try using the --replace option to replace the current window manager.
Window manager warning: Failed to read saved session file /home/bear/.config/met
acity/sessions/108d3656ea172b26f127485085969296200000040160015.ms: Failed to ope
n file '/home/bear/.config/metacity/sessions/108d3656ea172b26f127485085969296200
000040160015.ms': No such file or directory
Window manager warning: Screen 0 on display ":0.0" already has a window manager;
 try using the --replace option to replace the current window manager.
Window manager warning: Failed to read saved session file /home/bear/.config/met
acity/sessions/108d3656ea172b26f127485085969296200000040160015.ms: Failed to ope
n file '/home/bear/.config/metacity/sessions/108d3656ea172b26f127485085969296200
000040160015.ms': No such file or directory
Window manager warning: Screen 0 on display ":0.0" already has a window manager;
 try using the --replace option to replace the current window manager.
Window manager warning: Failed to read saved session file /home/bear/.config/met
acity/sessions/108d3656ea172b26f127485085969296200000040160015.ms: Failed to ope
n file '/home/bear/.config/metacity/sessions/108d3656ea172b26f127485085969296200
000040160015.ms': No such file or directory
Window manager warning: Screen 0 on display ":0.0" already has a window manager;
 try using the --replace option to replace the current window manager.

What shall I do? thx!!
 
/usr/ports/x11-wm/compiz/pkg-message

This port has installed compiz-manager which is a wrapper to start
compiz.

If you are using gnome, you can use the configuration editor to set the
value of:

desktop->gnome->session->required_components->windowmanager = compiz-manager

This will enable compiz as your default window manager.

That's the method I use and it works great. You'll find the configuration editor in the gnome menu.
 
atomicplayboy said:
/usr/ports/x11-wm/compiz/pkg-message



That's the method I use and it works great. You'll find the configuration editor in the gnome menu.

hi,
I have tried your methon but... it wont work for me.
I got these message in tty0:
Code:
Checking for Xgl:
(gnome-settings-daemon:1740): GdkPixbuf-CRITICAL **: gdk_pixbuf_format_get_name:
 assertion `format != NULL' failed
not present.

(polkit-gnome-authentication-agent-1:1764): polkit-gnome-1-WARNING **: Unable to
 determine the session we are in: Remote Exception invoking org.freedesktop.Cons
oleKit.Manager.GetSessionForUnixProcess() on /org/freedesktop/ConsoleKit/Manager
 at name org.freedesktop.ConsoleKit: org.freedesktop.ConsoleKit.Manager.GeneralE
rror: Unable to lookup session information for process '1764' org.freedesktop.Co
nsoleKit.Manager.GeneralError Unable%20to%20lookup%20session%20information%20for
%20process%20%271764%27
xset q doesn't reveal the location of the log file. Using fallback /var/log/Xorg
.0.log
Checking for texture_from_pixmap: not present.
Trying again with indirect rendering:
Checking for texture_from_pixmap:
** (nautilus:1749): WARNING **: Can not calculate _NET_NUMBER_OF_DESKTOPS

** (nautilus:1749): WARNING **: Can not calculate _NET_NUMBER_OF_DESKTOPS

** (nautilus:1749): WARNING **: Can not get _NET_WORKAREA

** (nautilus:1749): WARNING **: Can not determine workarea, guessing at layout
not present.
aborting and using fallback: /usr/local/bin/metacity

(nautilus:1749): GdkPixbuf-CRITICAL **: gdk_pixbuf_format_get_name: assertion `f
ormat != NULL' failed
Window manager warning: Failed to read saved session file /home/bear/.config/met
acity/sessions/102d660ab46394c461127487182719442600000017270015.ms: Failed to op
en file '/home/bear/.config/metacity/sessions/102d660ab46394c4611274871827194426
00000017270015.ms': No such file or directory

** (gnome-panel:1748): WARNING **: Could not ask session manager if shut down is
 available: Did not receive a reply. Possible causes include: the remote applica
tion did not send a reply, the message bus security policy blocked the reply, th
e reply timeout expired, or the network connection was broken.
Failure: Timeout

** (gnome-settings-daemon:1740): WARNING **: Client callback failure

** (gnome-settings-daemon:1740): WARNING **: Client callback failure
Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a ti
mestamp of 0 for 0xc00039 (Mozilla Fi)
Window manager warning: meta_window_activate called by a pager with a 0 timestam
p; the pager needs to be fixed.
 
Back
Top