qrexec: display VM name in connect timeout message (#723)

Now it is possible, as we have domain name from cmdline.
release2 mm_28aa4d99
Marek Marczykowski-Górecki 11 years ago
parent c92bc0a05c
commit 28aa4d992f

@ -98,9 +98,9 @@ int ask_on_connect_timeout(int xid, int timeout)
#define ZENITY_CMD "zenity --title 'Qrexec daemon' --question --text "
snprintf(text, sizeof(text),
"%s"
"'Timeout while trying connecting to qrexec agent (Xen domain ID: %d). 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?'",
ret==0 ? KDIALOG_CMD : ZENITY_CMD,
xid, timeout);
remote_domain_name, timeout);
#undef KDIALOG_CMD
#undef ZENITY_CMD
ret = system(text);

Loading…
Cancel
Save