1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-15 15:57:13 +00:00

Print a better message than "File not found" when the correct display program cannot be determined.

modified:   src/ldeboot.c
This commit is contained in:
Nick Briggs 2020-08-04 19:27:08 -04:00
parent 06872ed2b1
commit a4fdd8b27d

View File

@ -221,6 +221,11 @@ int main(int argc, char *argv[])
/* start ldemono or ldecolor */
if (filetorun[0] == '\0') {
fprintf(stderr, "Unable to determine what display program to run.\n");
exit(1);
}
argv[0] = filetorun; /* or whatever... */
/* then execve the LDE executable */