qrexec-daemon: use fully qualified path to kdialog/zenity

This commit is contained in:
Vincent Penquerc'h 2013-12-27 14:32:04 -05:00 committed by Marek Marczykowski-Górecki
parent 67f27bd94f
commit 259d7aaf78

View File

@ -110,8 +110,8 @@ int ask_on_connect_timeout(int xid, int timeout)
int ret; int ret;
struct stat buf; struct stat buf;
ret=stat("/usr/bin/kdialog", &buf); ret=stat("/usr/bin/kdialog", &buf);
#define KDIALOG_CMD "kdialog --title 'Qrexec daemon' --warningyesno " #define KDIALOG_CMD "/usr/bin/kdialog --title 'Qrexec daemon' --warningyesno "
#define ZENITY_CMD "zenity --title 'Qrexec daemon' --question --text " #define ZENITY_CMD "/usr/bin/zenity --title 'Qrexec daemon' --question --text "
snprintf(text, sizeof(text), snprintf(text, sizeof(text),
"%s" "%s"
"'Timeout while trying connecting to qrexec agent of VM %s. Do you want to wait next %d seconds?'", "'Timeout while trying connecting to qrexec agent of VM %s. Do you want to wait next %d seconds?'",