--- xdg-screensaver.orig 2018-05-20 01:18:48.000000000 +0300 +++ xdg-screensaver 2018-11-26 12:32:17.142582293 +0200 @@ -619,6 +619,14 @@ xautolock_screensaver "$1" ;; + xss-lock_screensaver) + if [ "$1" = "lock" ]; then + screensaver_xserver "activate" + else + screensaver_xserver "$1" + fi + ;; + xfce) [ -n "$DISPLAY" ] && screensaver_xserver "$1" ;; @@ -1394,6 +1402,8 @@ dbus-send --print-reply --dest=org.freedesktop.DBus /org/freedesktop/DBus org.freedesktop.DBus.GetNameOwner string:org.mate.ScreenSaver > /dev/null 2>&1 && DE="mate_screensaver" # Consider "xautolock" a separate DE xautolock -enable > /dev/null 2>&1 && DE="xautolock_screensaver" +# Consider "xss-lock" a separate DE +xss-lock --version > /dev/null 2>&1 && ps x -o cmd | grep -q '^xss-lock' && DE="xss-lock_screensaver" if [ "$action" = "resume" ] ; then do_resume