xdg-screensaver: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/bin/xdg-screensaver - from package: xdg-utils

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/bin/xdg-screensaver - from package: xdg-utils

You may install the required package with command apt-get install {package}
Error in other languages:
xdg-screensaver: bevel nie gevind nie
xdg-screensaver: comandă negăsită
xdg-screensaver: comando não encontrado
xdg-screensaver: commande introuvable
xdg-screensaver: command not found
xdg-screensaver: käsku ei ole
xdg-screensaver: không tìm thấy lệnh
xdg-screensaver: komanda nerasta
xdg-screensaver: Kommando nicht gefunden.
xdg-screensaver: kommandot finns inte
xdg-screensaver: komut yok
xdg-screensaver: nie znaleziono polecenia
xdg-screensaver: níor aimsíodh an t-ordú
xdg-screensaver: no se encontró la orden
xdg-screensaver: no s'ha trobat l'ordre
xdg-screensaver: opdracht niet gevonden
xdg-screensaver: parancs nem található
xdg-screensaver: perintah tidak ditemukan
xdg-screensaver: príkaz nenájdený
xdg-screensaver: příkaz nenalezen
xdg-screensaver: команда не найдена
xdg-screensaver: командата не е открита
xdg-screensaver: 命令找不到
xdg-screensaver: コマンドが見つかりません