You are not logged in.

#1 2009-06-08 16:26:39

sjb933
Member
Registered: 2007-01-18
Posts: 113

[SOLVED] GDM sessions for compiz-fusion and metacity

I've configured my gnome setup to autostart with compiz-fusion following the wiki:

GNOME  Autostart (without "fusion-icon")

1) Create /usr/share/applications/compiz.desktop containing the following:

[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Compiz
Exec=compiz ccp
NoDisplay=true
# name of loadable control center module
X-GNOME-WMSettingsModule=compiz
# autostart phase
X-GNOME-Autostart-Phase=WindowManager
X-GNOME-Provides=windowmanager
# name we put on the WM spec check window
X-GNOME-WMName=Compiz
# back compat only
X-GnomeWMSettingsLibrary=compiz

Note: If that doesn't work try:

Exec=compiz ccp --indirect-rendering

Instead of:

Exec=compiz ccp

2) Set a GConf parameter using the gconftool-2 command in a terminal window:

gconftool-2 --set -t string /desktop/gnome/session/required_components/windowmanager compiz

This works fine, but there are times when I want to altogether disable the 3d effects.  If I fire up fusion-icon or simply run a

metacity --replace

it causes X (or gnome) to crash and I'm sent back to GDM after X restarts.

What I would like to have is 2 different sessions to choose from in GDM:  metacity, and compiz-fusion.  Can someone help me out?

Thanks,
Shane

Last edited by sjb933 (2009-06-10 20:13:11)

Offline

#2 2009-06-10 20:11:16

sjb933
Member
Registered: 2007-01-18
Posts: 113

Re: [SOLVED] GDM sessions for compiz-fusion and metacity

Well, thanks to everyone whom apparently looked at this thread.  I guess I stumped a few.  I did however come up with a solution:

First I created 2 executable files in /usr/local/bin

/usr/local/bin/compiz-start-boot wrote:

#!/bin/bash
gconftool-2 --set -t string /desktop/gnome/session/required_components/windowmanager compiz
exec gnome-session

/usr/local/bin/gnome-start-boot wrote:

#!/bin/bash
gconftool-2 --set -t string /desktop/gnome/session/required_components/windowmanager metacity
exec gnome-session

Then I modified the Desktop entry for GNOME, and created my own for Compiz

/usr/share/xsessions/gnome.desktop wrote:

[Desktop Entry]
Encoding=UTF-8
Name=GNOME
Comment=This session logs you into GNOME
Exec=/usr/local/bin/gnome-start-boot
TryExec=gnome-session
Icon=
Type=Application

/usr/share/xsessions/compiz.desktop wrote:

[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=GNOME Compiz
Exec=/usr/local/bin/compiz-start-boot
Icon=
Type=Application

Now when each of my scripts is run (by selecting a desktop session), it sets the appropriate window manager before firing up Gnome.

-Shane cool

Last edited by sjb933 (2009-06-10 20:14:54)

Offline

#3 2009-09-07 23:24:23

p0ft
Member
From: Brazil
Registered: 2009-02-02
Posts: 8

Re: [SOLVED] GDM sessions for compiz-fusion and metacity

oh, nice. I'll try this one now. I was searching for a clean way to choose compiz through gdm (not just replacing it after startup). big_smile


:: i wanna see movies of my dreams

Offline

#4 2009-09-08 02:13:36

p0ft
Member
From: Brazil
Registered: 2009-02-02
Posts: 8

Re: [SOLVED] GDM sessions for compiz-fusion and metacity

Ok I've tested it, it loads compiz just fine, but somehow it doesn't load emerald. I have windows decorations enabled and if I use the fusion-icon emerald loads up properly. Should I force emerald in the session?

EDIT: Fully working now. I forgot to create the compiz desktop entry. x-x

Last edited by p0ft (2009-09-08 05:02:38)


:: i wanna see movies of my dreams

Offline

Board footer

Powered by FluxBB