I was able to reproduce it on a fully updated Lucid install (gnome-utils 2.30.0-0ubuntu1). Most of the time capturing the window fails with the X Window System Error, but sometimes it works. I had to add --sync to all gnome-screenshot commands in gconf-editor in order to make it work. BTW, 1 second delay also solved the issue.
-- gnome-screenshot exits with BadWindow (X Windows Error) https://bugs.launchpad.net/bugs/500533 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs