It didn't work when I simply ran it as root, either, but it did work when I edited the file to use gksu.
It didn't work when I simply ran it as root, either, but it did work when I edited the file to use gksu.