PDA

View Full Version : [SOLVED] gtk-window-decorator permanent fix?



mechanizedmedic
December 29th, 2010, 09:54 AM
i turned on my computer today and POOF, no window decorations. :confused: i haven't changed ANY display/appearance settings since i installed 10.04 and did my initial setup over a month ago. now when i startup i have to "gtk-window-decorator --replace" in terminal and leave it open to have everything decorated. i had a similar problem when i used compiz but i haven't installed anything other than the nvidia driver this time.

is there a way to find out what caused this and correct it? if not am i stuck with some sort of autostart launcher?

mcduck
December 29th, 2010, 10:02 AM
So are you now using Compiz or not? ..or actually that's a stupid question, since gnome-window-decorator is a Compiz plugin and doesn't even work without Compiz... :D

Anyway, open CompizConfig Settings Manager (install it if you haven't got it already), go to Window Decoration-plugin's settings and make sure the "Command"-filed is set to "/usr/bin/compiz-decorator".

mechanizedmedic
December 29th, 2010, 08:47 PM
i had a similar problem when i used compiz but i haven't installed anything other than the nvidia driver this time.

i'm trying to avoid compiz... as much as is possible, i want to use what comes with ubuntu upon install.

kellemes
December 29th, 2010, 08:50 PM
metacity --replace &

mcduck
December 29th, 2010, 08:52 PM
i'm trying to avoid compiz... as much as is possible, i want to use what comes with ubuntu upon install.

Compiz and Metacity are both included in the default install.

If you use visual effects you are using Compiz, if you turn them off you are using Metacity.

mechanizedmedic
December 29th, 2010, 08:58 PM
...i was just coming back to call myself an idiot...

is this issue a gconf setting that i can fix?

also, can i remove compiz and just use metacity like i was before this occured?

kellemes
December 29th, 2010, 09:06 PM
...i was just coming back to call myself an idiot...

is this issue a gconf setting that i can fix?

also, can i remove compiz and just use metacity like i was before this occured?

gconf-editor
desktop -> gnome -> session -> required-components -> windowmanager = metacity

mcduck
December 29th, 2010, 09:07 PM
The first thing you should try is setting the visual effects to "none" in System/Preferences/Appearance. That really should switch you to Metacity.

If it doesn't work, for some strange reason I can't think of, you can force Gnome to use Metacity by changing the /desktop/gnome/session/required_components/windowmanager key to "/usr/bin/metacity" in gconf-editor.

mechanizedmedic
December 30th, 2010, 12:13 AM
gconf-editor
desktop -> gnome -> session -> required-components -> windowmanager = metacity
this is what gconf-editor already shows.


The first thing you should try is setting the visual effects to "none" in System/Preferences/Appearance. That really should switch you to Metacity.

If it doesn't work, for some strange reason I can't think of, you can force Gnome to use Metacity by changing the /desktop/gnome/session/required_components/windowmanager key to "/usr/bin/metacity" in gconf-editor.
aside from gtk-window-decorator --replace i haven't used compiz. when i installed 10.04 i enabled the proprietary nvidia driver but left visual effects "none". i double checked and it's still set to none.

changed the gconf entry to /usr/bin/metacity and nothing changed, even after a restart.:confused:

mechanizedmedic
December 30th, 2010, 08:10 AM
i tried switching to compiz with the full settings manager and fusion icon. the only way i can get it to work on startup is with the autostart command "fusion-icon --force-compiz"

...this is not at all what i wanted to end up with but until i get a real fix this will have to do. if anyone has any ideas please help! i would much rather keep things simple with metacity.

mcduck
December 30th, 2010, 08:13 AM
this is what gconf-editor already shows.


aside from gtk-window-decorator --replace i haven't used compiz. when i installed 10.04 i enabled the proprietary nvidia driver but left visual effects "none". i double checked and it's still set to none.

changed the gconf entry to /usr/bin/metacity and nothing changed, even after a restart.:confused:

Well, like I said, gtk-window-decorator is not a window manager, it's a Compiz decoration plugin so running "gtk-window-decorator --replace" would immediately switch you to using Compiz as your window manager (and load all confgured Compiz plugins as well, of course).

What happens if you open a terminal and run "metacity --replace"?

mechanizedmedic
December 30th, 2010, 09:11 AM
understood... everything works IF i use the terminal, fusion icon, or visual effects options to activate them. none of these changes survive reboot. (aside from forcing with an autostart entry)

i'm thinking that i have something wrong other than settings, either hardware or one of the many bugs in 10.04... i've had a couple of rare freeze ups in the last few months since i upgraded/reinstalled. ever since this decorator thing started last night it's been freezing every few hours. seems video related because the screen goes all wacky. <--that's a technical term!

are there any log files that i can check to verify my hunch?

mcduck
December 30th, 2010, 10:02 AM
I'd check the ~/.xsession-errors first, and then perhaps /var/log/Xorg.0.log.

Of course syslog and messages might have something as well, if it's a driver issue. (both are in /var/log/)

mechanizedmedic
January 2nd, 2011, 05:07 AM
thanks for your help mcduck! i never ended up figuring out the cause but i learned that kubuntu is the desktop for me! :D

a-user
January 2nd, 2011, 01:54 PM
the reason was you doing stuff without the knowledge what you were doing: "gtk-window-decorator --replace"

if you continue like that you will get problems with kubuntu too.

there is no os that you cant **** up if you enforce commands that when you don't really know what you are doing.