gui-fatal: use fully qualified paths to kdialog/zenity

This commit is contained in:
Vincent Penquerc'h 2013-12-29 08:06:59 -05:00 committed by Marek Marczykowski-Górecki
parent 73adfc88e3
commit 3e8c0372c2

View File

@ -27,10 +27,10 @@ static void produce_message(const char * type, const char *fmt, va_list args)
case 0:
fix_display();
#ifdef USE_KDIALOG
execlp("kdialog", "kdialog", "--sorry", dialog_msg, NULL);
execlp("/usr/bin/kdialog", "kdialog", "--sorry", dialog_msg, NULL);
#else
execlp("zenity", "zenity", "--error", "--text", dialog_msg, NULL);
execlp("/usr/bin/zenity", "zenity", "--error", "--text", dialog_msg, NULL);
#endif
exit(1);
default:;