From a4fdd8b27dcc5e7b2b3ddc890332bc683a8372ea Mon Sep 17 00:00:00 2001 From: Nick Briggs Date: Tue, 4 Aug 2020 19:27:08 -0400 Subject: [PATCH] Print a better message than "File not found" when the correct display program cannot be determined. modified: src/ldeboot.c --- src/ldeboot.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ldeboot.c b/src/ldeboot.c index 7c46101..aff6a45 100644 --- a/src/ldeboot.c +++ b/src/ldeboot.c @@ -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 */