xdg-icon-resource: 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-icon-resource - 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-icon-resource - from package: xdg-utils

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