check return of system ... less warnings

This commit is contained in:
Carsten Haitzler 2021-05-20 13:44:48 +01:00
parent 883cf23ceb
commit 808f15957b
1 changed files with 2 additions and 1 deletions

View File

@ -23,7 +23,8 @@ e_deskenv_init(void)
{
#if 1
snprintf(buf2, sizeof(buf2), "xrdb -override %s", buf);
system(buf2);
if (system(buf2) != 0)
fprintf(stderr, "Execution of [%s] did not exit cleanly\n", buf2);
#else
// while this SHOULD work.. it ends up with mysterious problems
// inside xlib that i seem to not be able to trap easily...