diff --git a/qrexec/qrexec-daemon.c b/qrexec/qrexec-daemon.c index 802080a..57617eb 100644 --- a/qrexec/qrexec-daemon.c +++ b/qrexec/qrexec-daemon.c @@ -167,16 +167,16 @@ static void incompatible_protocol_error_message( int ret; struct stat buf; ret=stat("/usr/bin/kdialog", &buf); -#define KDIALOG_CMD "kdialog --title 'Qrexec daemon' --warningyesno " -#define ZENITY_CMD "zenity --title 'Qrexec daemon' --question --text " +#define KDIALOG_CMD "kdialog --title 'Qrexec daemon' --sorry " +#define ZENITY_CMD "zenity --title 'Qrexec daemon' --warning --text " snprintf(text, sizeof(text), "%s" "'Domain %s uses incompatible qrexec protocol (%d instead of %d). " "You need to update either dom0 or VM packages.\n" - "To access this VM console do not close this error message and call:\n" - "sudo xl console vmname'", + "To access this VM console do not close this error message and run:\n" + "sudo xl console -t pv %s'", ret==0 ? KDIALOG_CMD : ZENITY_CMD, - domain_name, remote_version, QREXEC_PROTOCOL_VERSION); + domain_name, remote_version, QREXEC_PROTOCOL_VERSION, domain_name); #undef KDIALOG_CMD #undef ZENITY_CMD system(text);