Firstly, you should make sure you have the compiz-gnome package installed. Secondly, gnome-window-decorator has been renamed to gtk-window- decorator. You may want to try that in your script.
-- compiz-core (x server does not load before login) https://launchpad.net/bugs/76248 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs