My bad everyone, I hadn't restarted the session. After restarting the session I ran the script and it works fine.
Thanks! -- gnome-screensaver-command --poke no longer inhibits screensaver https://bugs.launchpad.net/bugs/428884 You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-screensaver in ubuntu. -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs