]> git.lyx.org Git - lyx.git/blobdiff - src/lyx_main.C
remove more forms.h cruft
[lyx.git] / src / lyx_main.C
index 859d1fe672aa693e28aad8a9a9a15513d7ce084c..7b260e2af7125c5da93388f2d08527fcc85df65a 100644 (file)
@@ -311,12 +311,19 @@ void LyX::init(bool gui)
                       <<_("set the environment variable LYX_DIR_11x to the "
                           "LyX system directory ")
                       << _("containing the file `chkconfig.ltx'.") << endl;
-               if (!path_shown)
+               if (!path_shown) {
+                       FileInfo fi(LYX_DIR);
+                       if (!fi.exist()) {
+                               lyxerr << "Couldn't even find the default LYX_DIR." << endl
+                                       << "Giving up." << endl;
+                               exit(1);
+                       }
                        lyxerr << _("Using built-in default ") 
                               << LYX_DIR << _(" but expect problems.")
                               << endl;
-               else
+               } else {
                        lyxerr << _("Expect problems.") << endl;
+               }
                system_lyxdir = LYX_DIR;
                path_shown = true;
        }