Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 347417

Summary: gtk-window-decorator in x11-wm/compiz-0.8.6-r2 does not respect gnome-theme
Product: Gentoo Linux Reporter: PHẠM NGUYỄN Trường An <pntruongan2005>
Component: New packagesAssignee: Desktop-Effects herd <desktop-effects+disabled>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description PHẠM NGUYỄN Trường An 2010-12-01 11:45:21 UTC
In compiz-0.8.6 there was a /etc/gconf/schemas/gwd.schemas schema file install if you emerge compiz with gnome USE flags. This schema allow gtk-window-decorator to be configurable. If you want gtk-window-decorator to take window border theme specify in gnome-appearance-properties, you should gconf settings: apps/gwd/use_metacity_theme to true

However, in compiz 0.8.6-r2 that schema file was missing, and even though I backed this file, installed it (using 
gconftool-2 --install-schema-file /etc/gconf/schemas/gwd.schemas), set those settings right, gtk-window-decorator keep using it default cairo based theme and cannot be configure to respect gnome theme settings.

Reproducible: Always

Steps to Reproduce:
1. Emerge compiz-0.8.6-r2
2. Change window decorator to gtk-window-decorator by running gtk-window-decorator --replace or using fusion-icon
3. Change window border in gnome-appearance-properties

Actual Results:  
Nothing change after step 3 

Expected Results:  
window border should change 

This problem existed in compiz-0.8.6-r1 as well.
Comment 1 Mike Auty (RETIRED) gentoo-dev 2010-12-04 18:40:28 UTC
Please could you provide the output from emerge --info.

There is no significant change between compiz-0.8.6 and compiz-0.8.6-r2, however, you must now ensure you specify USE="gnome" (since USE="gconf" was combined into USE="gnome" in compiz-0.8.6-r1).

Otherwise you problem is most likely with one of the other packages on your system.  You can check for linking problems by running "revdep-rebuild -i" after installing gentoolkit.  Please run this and let us know after it rebuilds any necessary packages whether you're still experiencing the problem.
Comment 2 PHẠM NGUYỄN Trường An 2010-12-05 17:58:04 UTC
$ emerge --info compiz
Portage 2.1.9.24 (default/linux/amd64/10.0/desktop/gnome, gcc-4.4.4, glibc-2.11.2-r3, 2.6.34-gentoo-r12 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.34-gentoo-r12-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4400+-with-gentoo-1.12.14
Timestamp of tree: Sun, 28 Nov 2010 06:00:23 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11-r1
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.14-r1
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8-sse3 -m3dnow -msse3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=k8-sse3 -m3dnow -msse3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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/layman/gnome2-globalmenu"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi aim alsa amd64 anthy aspell audio berkdb bittorrent branding brasero bzip2 cairo cdr cjk cleartype cli consolekit cpudetection cracklib crypt cups cxx dbus dhcp dri dts dvd dvdr eds emboss enca encode evo exif fam ffmpeg firefox flac fortran gdbm gdu gif gmplayer gnome gnome-keyring gnutls gpm gstreamer gtk hal iconv immqt-bc ipv6 jpeg lame lcms ldap libnotify m17n-lib mad matroska mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3 qt3support qt4 quicktime readline scim sdl session sound spell sqlite sse sse2 ssl startup-notification svg sysfs tcpd theora tiff truetype unicode usb vdpau vorbis x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

x11-wm/compiz-0.8.6-r2 was built with the following:
USE="cairo dbus gnome gtk (multilib) svg -fuse -gconf -kde"
Comment 3 PHẠM NGUYỄN Trường An 2010-12-05 18:18:41 UTC
The emerge --info compiz output was provided in comment #2. 

@Mike Auty: However, I don't quite understand when you said about GNOME and GCONF merging together. When I emerged compiz, I did it without gconf use flag because I want to change compiz settings with ccsm, not gconf. It worked that way in 0.8.6. Since you said the merging happen in 0.8.6-r1, I suspect this was the cause of the problem, but it's just my guess though.
Is there anything else you need me to check?

Comment 4 Mike Auty (RETIRED) gentoo-dev 2010-12-05 19:15:37 UTC
Right, sorry, I got the ordering wrong.  When I said "combined" what I meant was "split".  For the gconf schemas required for gnome-window-decorator to be installed you need to set USE="gconf".  Please try that and see if it solves your problems.

Ccsm is always used to control compiz, you shouldn't ever need to use gconf-editor to configure things in compiz.  Ccsm can either use a flat file format to store its information, or it can use gconf.  You can still use the flat file format, even if you set USE="gconf".

Also, this looks like a duplicate of bug 338071, hence I'm marking this one as a duplicate.  Please report back on that bug if compiling with USE="gconf" solves your problems.

*** This bug has been marked as a duplicate of bug 338071 ***
Comment 5 PHẠM NGUYỄN Trường An 2010-12-05 19:46:15 UTC
Yeah! set gconf use flag indeed solved the problem. But this use flag is kinda confused for those who update from an old version with only GNOME use flag set. Especially when "equery uses compiz" told you that compiz may work faster if gconf use flag is off.
I hope this confusion will be addressed, at least, the info on those use flag should be change.

Thanks for your time and effort to clear me out, this bug is closed now.