You are not logged in.

#1 2011-07-09 02:45:36

dodgefan
Member
From: The 60s's
Registered: 2008-03-08
Posts: 41

[SOLVED] compiz wont use gtk-window-decorator with xfce

for the life of me i cant get ccsm to keep "gtk-window-decorator --replace" to stick in the Command line of the Window Decoration plugin section. it keeps switching to "emerald --replace"

is it because im using xfce and not gnome? xfce uses gtk right. anyone have this issue? its not that i dont mind emerald, just on some other distros ive used i can change it no problem, most of those were using gnome though so maybe thats it

Last edited by dodgefan (2011-07-11 03:24:50)


Fan of all things Dodge!
Its Mopar or No Car!

Offline

#2 2011-07-09 03:16:21

triplesquarednine
Member
Registered: 2011-04-12
Posts: 630

Re: [SOLVED] compiz wont use gtk-window-decorator with xfce

weird, i am using Gnome 3 + compiz, and don't have Xfce installed. but i do have one idea for a test just to see if compiz will use gtk-window-decorator in Xfce in general..try this;

it's basically just a script to start compiz with gtk-window-decorator, it will also kill emerald. just copy and paste it into a text file / sh script, save it, then make it executable and run it.

#!/bin/bash

PREFIX=/usr
export LD_LIBRARY_PATH=/usr/lib:/usr/lib64:/usr/lib32::$LD_LIBRARY_PATH

# Kill all decorators in case an incompatible (0.8) decorator is running
if ps ax | grep gtk-window-decorator | grep -v grep &> /dev/null; then
    echo "Killing gtk-window-decorator"
    killall gtk-window-decorator &> /dev/null
fi
if ps ax | grep emerald | grep -v grep &> /dev/null; then
    echo "Killing emerald"
    killall emerald &> /dev/null
fi

$PREFIX/bin/compiz --replace ccp "$@" &
$PREFIX/bin/gtk-window-decorator --replace &

then you'll know if it works in Xfce for sure, then it's just a matter of why isn't CCSM retaining your settings?

hope this helps smile

Last edited by triplesquarednine (2011-07-09 03:17:12)

Offline

#3 2011-07-10 14:27:28

dodgefan
Member
From: The 60s's
Registered: 2008-03-08
Posts: 41

Re: [SOLVED] compiz wont use gtk-window-decorator with xfce

thanks for that! but when i run it, i get

line 17: /usr/bin/gtk-window-decorator: No such file or directory


Fan of all things Dodge!
Its Mopar or No Car!

Offline

#4 2011-07-10 15:15:44

sumski
Member
From: Zagreb, Croatia
Registered: 2011-04-30
Posts: 114

Re: [SOLVED] compiz wont use gtk-window-decorator with xfce

have you installed compiz-fusion-gtk? I installed it to my gf arch/xfce and she's using it without any problems.

Offline

#5 2011-07-10 15:23:34

dodgefan
Member
From: The 60s's
Registered: 2008-03-08
Posts: 41

Re: [SOLVED] compiz wont use gtk-window-decorator with xfce

yes i have


Fan of all things Dodge!
Its Mopar or No Car!

Offline

#6 2011-07-10 15:38:33

triplesquarednine
Member
Registered: 2011-04-12
Posts: 630

Re: [SOLVED] compiz wont use gtk-window-decorator with xfce

dodgefan wrote:

thanks for that! but when i run it, i get

line 17: /usr/bin/gtk-window-decorator: No such file or directory

it would appear that you don't have gtk-window-decorator installed by the look of this.

gtk-window-decorator lives in /usr/bin , unless you have installed it elsewhere, which seems unlikely. but just to make sure, you could use the 'locate' command from a terminal - 'locate gtk-window-decorator'. if nothing turns up, then it's not installed.

[ninez@ninez ~]$ locate gtk-window-decorator
/usr/bin/gtk-window-decorator
/usr/local/bin/gtk-window-decorator

you can see on my system, i actually have it in /usr/bin and /usr/local/bin (i have 2 installs of compiz, that's why).  also, which compiz packages are you using?

EDIT

you probably need to install gtk2 from extra. or you could install compiz-pure (0.8.6) from AUR, which comes with gtk-window-decorator.  something else to take note of is that if you have compiled(any version of) compiz from a pkgbuild in AUR ~ during the compile, it looks to see if gtk-window-decorator is present - if it isn't, it may have built compiz without gtk support. so you may need to re-compile/install after gtk is present.

Last edited by triplesquarednine (2011-07-10 15:59:23)

Offline

#7 2011-07-10 17:51:24

sumski
Member
From: Zagreb, Croatia
Registered: 2011-04-30
Posts: 114

Re: [SOLVED] compiz wont use gtk-window-decorator with xfce

Files installed with compiz-decorator-gtk:

    usr/
    usr/bin/
    usr/bin/gtk-window-decorator
    usr/lib/
    usr/lib/compiz/
    usr/lib/compiz/libgconf.a
    usr/lib/compiz/libgconf.so
    usr/lib/pkgconfig/
    usr/lib/pkgconfig/compiz-gconf.pc
    usr/lib/window-manager-settings/
    usr/lib/window-manager-settings/libcompiz.a
    usr/lib/window-manager-settings/libcompiz.so
    usr/share/
    usr/share/applications/
    usr/share/applications/compiz.desktop
    usr/share/gconf/
    usr/share/gconf/schemas/
    usr/share/gconf/schemas/compiz-decorator-gtk.schemas
    usr/share/gconf/schemas/gwd.schemas
    usr/share/gnome-control-center/
    usr/share/gnome-control-center/keybindings/
    usr/share/gnome-control-center/keybindings/50-compiz-desktop-key.xml
    usr/share/gnome-control-center/keybindings/50-compiz-key.xml
    usr/share/gnome/
    usr/share/gnome/wm-properties/
    usr/share/gnome/wm-properties/compiz-wm.desktop
    usr/share/licenses/
    usr/share/licenses/compiz-decorator-gtk/
    usr/share/licenses/compiz-decorator-gtk/COPYING.MIT

Do

pacman -Qs compiz

and post results

Offline

#8 2011-07-11 00:17:47

dodgefan
Member
From: The 60s's
Registered: 2008-03-08
Posts: 41

Re: [SOLVED] compiz wont use gtk-window-decorator with xfce

weird, i dont have the locate command, thought it was part of findutils and that is installed, but no locate

also i do have gtk2 and i installed compiz-fusion-gtk, i also just installed compiz-decorator-gtk, now if i change it in ccsm to gtk-window-decorator --replace, it sticks but i get no window decorators, no borders around the windows

its actually -Ql

pacman -Ql compiz-decorator-gtk
compiz-decorator-gtk /usr/
compiz-decorator-gtk /usr/bin/
compiz-decorator-gtk /usr/bin/gtk-window-decorator
compiz-decorator-gtk /usr/lib/
compiz-decorator-gtk /usr/lib/compiz/
compiz-decorator-gtk /usr/lib/compiz/libgconf.a
compiz-decorator-gtk /usr/lib/compiz/libgconf.so
compiz-decorator-gtk /usr/lib/pkgconfig/
compiz-decorator-gtk /usr/lib/pkgconfig/compiz-gconf.pc
compiz-decorator-gtk /usr/lib/window-manager-settings/
compiz-decorator-gtk /usr/lib/window-manager-settings/libcompiz.a
compiz-decorator-gtk /usr/lib/window-manager-settings/libcompiz.so
compiz-decorator-gtk /usr/share/
compiz-decorator-gtk /usr/share/applications/
compiz-decorator-gtk /usr/share/applications/compiz.desktop
compiz-decorator-gtk /usr/share/gconf/
compiz-decorator-gtk /usr/share/gconf/schemas/
compiz-decorator-gtk /usr/share/gconf/schemas/compiz-decorator-gtk.schemas
compiz-decorator-gtk /usr/share/gconf/schemas/gwd.schemas
compiz-decorator-gtk /usr/share/gnome-control-center/
compiz-decorator-gtk /usr/share/gnome-control-center/keybindings/
compiz-decorator-gtk /usr/share/gnome-control-center/keybindings/50-compiz-desktop-key.xml
compiz-decorator-gtk /usr/share/gnome-control-center/keybindings/50-compiz-key.xml
compiz-decorator-gtk /usr/share/gnome/
compiz-decorator-gtk /usr/share/gnome/wm-properties/
compiz-decorator-gtk /usr/share/gnome/wm-properties/compiz-wm.desktop
compiz-decorator-gtk /usr/share/licenses/
compiz-decorator-gtk /usr/share/licenses/compiz-decorator-gtk/
compiz-decorator-gtk /usr/share/licenses/compiz-decorator-gtk/COPYING.MIT


Fan of all things Dodge!
Its Mopar or No Car!

Offline

#9 2011-07-11 01:27:12

triplesquarednine
Member
Registered: 2011-04-12
Posts: 630

Re: [SOLVED] compiz wont use gtk-window-decorator with xfce

hmm...

1. does gtk-window-decorator work when compiz isn't running? (ie: does gtk-window-decorator run at all?)

2. I don't use compiz-fusion, but when i did (a long while back) i used to use fusion-icon, which used to solve my issues in Fedora. I believe it is apart of Arch's compiz-fusion-gtk. are you using it? and have you tried picking gtk-window-decorator there? in fusion-icon applet, there is a menu where you can turn compiz on/off, pick the window-decoration, etc.

3. are you using fusion-icon on startup, if not what is the exact command you are using to start compiz?

4. I take it you have followed all steps in the Compiz ArchWiki - to do with compiz-fusion?

https://wiki.archlinux.org/index.php/Compiz

5. you might want to check Compiz Wiki trouble shooting, maybe we have missed something..?

http://wiki.compiz.org/Troubleshooting

6. have you tried executing compiz + gtk from the commandline, if so what does the output say?

i'm a little foggy on certain things with fusion, as i use Compiz 0.9.5 (i build it from git, anytime i see changes in gitweb on Compiz' site).  maybe someone else here who is using compiz-fusion is a little more 'fresh' on it's quirks?

im still shocked that the script i gave you didn't find /usr/bin/gtk-window-decorator , being as we know that it is present

Last edited by triplesquarednine (2011-07-11 01:28:55)

Offline

#10 2011-07-11 03:24:15

dodgefan
Member
From: The 60s's
Registered: 2008-03-08
Posts: 41

Re: [SOLVED] compiz wont use gtk-window-decorator with xfce

well after installing some of the other things above i ran your script again and it said it could load libmetacity so i installed metacity and now everything is working, gtk-window-decorator is staying put in ccsm and i have all the compiz goodness while using the xfce themes instead of emerald. thanks for all the help folks!

and yeah i am using the fusion icon at startup


Fan of all things Dodge!
Its Mopar or No Car!

Offline

#11 2011-07-11 04:08:55

triplesquarednine
Member
Registered: 2011-04-12
Posts: 630

Re: [SOLVED] compiz wont use gtk-window-decorator with xfce

dodgefan wrote:

well after installing some of the other things above i ran your script again and it said it could load libmetacity so i installed metacity and now everything is working, gtk-window-decorator is staying put in ccsm and i have all the compiz goodness while using the xfce themes instead of emerald. thanks for all the help folks!

and yeah i am using the fusion icon at startup

Awesome!

i'm glad we could help, and that it is working for you know. smile

cheerz

Offline

#12 2012-01-09 19:20:01

brAzzi64
Member
From: Montevideo, Uruguay
Registered: 2011-12-08
Posts: 18
Website

Re: [SOLVED] compiz wont use gtk-window-decorator with xfce

Hey!

I'm using XFCE and currently emerald with compiz 0.8.8. I'm on the process of installing compiz 0.9.5 from tarballs, to start messing around with the code, but I'm having problems since I haven't found a reliable version of emerald that works with compiz 0.9.5... So I wanted to try gtk-window-decorator instead, first making it work with compiz 0.8.8. The problem is that installing compiz-decorator-gtk from from the repositories, has the whole gnome-desktop-3.2.1-1 as a dependency, that is exactly what I'm trying to avoid by using XFCE...

Anybody knows if I have any alternative?

Offline

#13 2012-01-09 22:43:03

furanu
Member
From: Spain
Registered: 2009-05-21
Posts: 9

Re: [SOLVED] compiz wont use gtk-window-decorator with xfce

brAzzi64 wrote:

Hey!

I'm using XFCE and currently emerald with compiz 0.8.8. I'm on the process of installing compiz 0.9.5 from tarballs, to start messing around with the code, but I'm having problems since I haven't found a reliable version of emerald that works with compiz 0.9.5... So I wanted to try gtk-window-decorator instead, first making it work with compiz 0.8.8. The problem is that installing compiz-decorator-gtk from from the repositories, has the whole gnome-desktop-3.2.1-1 as a dependency, that is exactly what I'm trying to avoid by using XFCE...

Anybody knows if I have any alternative?

You can use this, is compiz-gtk-decorator without gnome dependecies: https://aur.archlinux.org/packages.php? … 7&detail=1
You might need to install gconf and gconftool. Use this command in order to change the windows decorator theme: gconftool-2 --set /apps/metacity/general/theme --type string "Theme"

It should work in compiz 0.8.8, but isn't working for me in 0.9.5. If you are able to configure themes with 0.9.5 post the how-to here, please

Offline

#14 2012-01-10 09:45:55

n125
Member
Registered: 2011-12-30
Posts: 38

Re: [SOLVED] compiz wont use gtk-window-decorator with xfce

I was actually wondering how to completely install Compiz 0.9.x under Xfce earlier. I managed to successfully install and get running compiz-core-git, ccsm-git, compiz-plugins-extra-git, compiz-plugins-main-git, compizconfig-python-git, and libcompizconfig-git; all from the AUR. But when all was said and done, I was left without a window decorator. I wanted compiz-decorator-gtk, but I couldn't find it in the AUR and the one in the community repo wouldn't install due to not having compiz-core installed (I had compiz-core-git), which left me stuck going back to 0.8.8 for now.

Offline

#15 2012-01-14 18:49:10

triplesquarednine
Member
Registered: 2011-04-12
Posts: 630

Re: [SOLVED] compiz wont use gtk-window-decorator with xfce

n125 wrote:

I was actually wondering how to completely install Compiz 0.9.x under Xfce earlier. I managed to successfully install and get running compiz-core-git, ccsm-git, compiz-plugins-extra-git, compiz-plugins-main-git, compizconfig-python-git, and libcompizconfig-git; all from the AUR. But when all was said and done, I was left without a window decorator. I wanted compiz-decorator-gtk, but I couldn't find it in the AUR and the one in the community repo wouldn't install due to not having compiz-core installed (I had compiz-core-git), which left me stuck going back to 0.8.8 for now.

Had you enabled 'window decoration' in CCSM??? (4 compiz 0.9.x?) On install, it is probably not enabled (along with resizing, moving windows, etc). It also won't pick up your 0.8.8 settings - so you need to set up CCSM settings from scratch.. Also, Compiz should have built gtk-window-decorator when you compiled it. (which is why i believe that you didn't have CCSM comfigured correctly with your new version of compiz).

as for the compiz packages in AUR, can't give you much advice there, as i build compiz myself, using Scott Moreau's build scripts;

git clone git://anongit.compiz.org/users/soreau/scripts

there are a few build scripts - for both 0.8.8 and 0.9.x - whichever ones end in '++' - are for building 0.9.x ... for both series, there are scripts to build all of the addons / plugins.

building it yourself, may not be your ideal approach, so i would recommend trying the AUR pkgbuilds for compiz 0.9.x , but this time have a look in CCSM, after you install the new version and make sure that you have enabled all of the important stuff like move, resize, window decoration, etc.

You also might want to read through compiz' Wiki, the trouble-shooting section covers your 'no-window-decoration' problem ~ as it is quite common.

http://wiki.compiz.org/Troubleshooting

cheerz

Last edited by triplesquarednine (2012-01-14 18:57:18)

Offline

Board footer

Powered by FluxBB