e_alert_main: Don't monitor in E in wayland only mode to avoid endless restarts

When running in Wayland only mode we don't have XCB available so a
xcb_connection would fail and we would restart endlessly.

I have been bitten by that often enough now. Better shutdown E cleanly and don't
use the watchdog functionality for now. This needs a wayland specific solution
anyway.
This commit is contained in:
Stefan Schmidt 2014-09-05 12:12:13 +02:00
parent 99f9244d1c
commit c281d6da82
1 changed files with 6 additions and 0 deletions

View File

@ -66,6 +66,12 @@ main(int argc, char **argv)
const char *tmp;
int i = 0;
/* XCB is not avaibale when running in wayland only mode. No need to start anything here */
#ifdef HAVE_WAYLAND_ONLY
printf("E Alert is not suitable to be used with E in wayland only mode\n");
exit(0);
#endif
for (i = 1; i < argc; i++)
{
if ((!strcmp(argv[i], "-h")) ||