xdg-screensaver is currently hardcoded to launch particular screensavers for GNOME or KDE. It should support an interface so that if a person wants to use an alternative screensaver, they can specify it. Perhaps xdg-screensaver could check for a file on the system, and if present, run that script to start the screensaver rather than doing its current magic.
One approach is to check, if a screensaver daemon is running. Supporting xautolock could give user a way to set locker, but "xautolock -locknow" returns exit code 0 even if "nowlocker" is not defined (xautolock 2.2). Please check my attachment for the following bug report about a locking script for Xfce: https://bugzilla.xfce.org/show_bug.cgi?id=3770 It tries to use an available daemonless locker, if it doesn't detect a screensaver daemon.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xdg/xdg-utils/issues/28.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.