I have a program, Vuescan, which I use with my flatbed scanner. It works fine up to Ubuntu 10.10 (64bit), but in Ubuntu 11.04 (64 bit), the Vuescan window does not launch under Unity or in Classic mode or in Classic mode - no effects. It does run normally in Safe mode.
I discovered through trial and error that if I turn OFF the Window Decoration plugin in Compiz (via the CCSM), Vuescan starts normally and opens its GUI window. I can then turn Window Decorations back ON via the CCSM and everything works OK with the window decorations, including Vuescan.
As a workaround until either Vuescan is fixed or the Compiz/Unity window decorator is fixed, I would like to start Vuescan with a script, BASH preferably, that would first turn OFF Window Decorations, then start Vuescan (this part is easy and I know how to do it), and then turn Window Decorations back ON. I'm not familiar enough with Compiz and how to communicate with it via Dbus, specifically as it is implemented in Ubuntu 11.04, to be able to do this script on my own.
Any help much appreciated!