Use xdg-screensaver, which should automatically use Gnome-Screensaver or xscreensaver as appropriate.