Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 286208 - gnome-base/gnome-session support for ccsm in gnome-wm
Summary: gnome-base/gnome-session support for ccsm in gnome-wm
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: http://bugzilla.gnome.org/show_bug.cg...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-24 12:21 UTC by Raffaello D. Di Napoli
Modified: 2009-10-08 19:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Makes Compiz start with ccp plugin, and improve OPTs vars (gnome-wm-2.22.3-merge-OPTs-vars-and-compiz-use-ccp.patch,1.60 KB, patch)
2009-09-24 12:36 UTC, Raffaello D. Di Napoli
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Raffaello D. Di Napoli 2009-09-24 12:21:29 UTC
I use the WINDOW_MANAGER environment variable, in order to have a system-wide default window manager, Compiz, instead of Metacity; I still want the latter to be fully working, and with as many settings as possible shared with the former.

The “GNOME compatibility” plugin makes this easy, in that it makes Compiz (and CompizConfig) use Metacity’s gconf keys, so that changing settings in CCSM actually changes them for Metacity, when applicable (mainly, keyboard shortcuts).

Now, turns out that gnome-wm loads Compiz with the gconf plugins, and that will cause Compiz to *only* use its own configuration, instead of a (possibly, depending on plugins) shared config with Metacity.
Basically, Compiz should really just do whatever the profile in CCSM says, so the startup plugin should be ccp (CompizConfig Profile).

Reproducible: Always

Steps to Reproduce:
1. “export WINDOW_MANAGER=compiz” somewhere in /etc/env.d
2. env-update

Actual Results:  
Compiz only uses settings from gconf/apps/compiz, due to gnome-wm starting it with plugin gconf instead of ccp.


Expected Results:  
Compiz profile applied exactly as the user specified in CompizConfig, when the latter is installed.


emerge --info
Portage 2.1.6.13 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.30-gentoo-r6-i686-Intel-R-_Core-TM-2_Duo_CPU_T5550_@_1.83GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 20 Sep 2009 07:45:01 +0000
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=core2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O3 -march=core2 -pipe"
DISTDIR="/store/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo                 ftp://ftp.unina.it/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="it"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X aalib acl acpi alsa bash-completion branding bzip2 cairo cdda cddb cdr cli cracklib crypt cxx dbus dga dri dvd dvdr encode exif fbcon ffmpeg flac fontconfig ftp fuse gd gif gimp gnome gnome-keyring gnutls gphoto2 gpm gstreamer gtk hal hddtemp iconv id3tag ieee1394 isdnlog java javascript jpeg jpeg2k lame lcms libnotify lm_sensors lzma matroska midi mime mmap mmx mng mp3 mp4 mpeg mudflap nautilus ncurses nfs nls nptl nptlonly nsplugin offensive ogg opengl openmp pam pch pcmcia pcre pdf perl png posix pppd python readline reflection samba sdl session sharedmem smp sockets spell spl sqlite sse sse2 sse3 ssl svg sysfs syslog sysvipc tcpd threads tiff truetype unicode usb v4l v4l2 vorbis wifi x86 xattr xorg xpm xulrunner xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="   actions alias asis auth_basic authz_host autoindex dir env headers ident   include log_config mime mime_magic negotiation rewrite version " APACHE2_MPMS="worker" CAMERAS="template" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Raffaello D. Di Napoli 2009-09-24 12:36:07 UTC
Created attachment 205106 [details, diff]
Makes Compiz start with ccp plugin, and improve OPTs vars

The proposed patch adds a check for /usr/bin/ccsm; if it is found, then ccp is used, otherwise the glib+gconf combo is used as it is now.

Also, while working on this patch I found the OPT[1-4] variables to be a bit clumsy, so I replaced them with a single OPTS variable that is accrued bit by bit as necessary. This also allows (should the need arise) to prepend arguments, instead of only appending them (or prepending by manually shifting each OPT[1-3] var into OPT[2-4]...).
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-09-27 23:14:47 UTC
Please open an upstream report at https://bugzilla.gnome.org and CC gnome@gentoo.org there and copy the URL here.
Comment 3 Raffaello D. Di Napoli 2009-10-08 11:45:43 UTC
(In reply to comment #2)
> Please open an upstream report at https://bugzilla.gnome.org and CC
> gnome@gentoo.org there and copy the URL here.

http://bugzilla.gnome.org/show_bug.cgi?id=597712
Comment 4 Gilles Dartiguelongue (RETIRED) gentoo-dev 2009-10-08 19:01:44 UTC
Closing upstream until a consensus is found there. It looks like they don't like the proposed change or that the current problem is not well explained for them to understand why it's needed. Please reopen when an agreement has been reached in case we fail to detect it.