Hi, here's a patch to add 1.0.1's splash screen to the cvs version. The patch itself works, but starting lyx without a .lyx directory is broken at the moment, no matter if you choose to create .lyx or not (I cannot fix this, since I absolutely don't know what's going on there). Can someone please commit this patch? Regards Daniel -- PGP Key fingerprint = 3D 98 9E D2 00 B6 E0 9D 7E B9 77 23 17 E2 11 6A http://cgi4all.alabanza.com/glasatelier/
--- /home/dnaber/cvs/lyx/src/main/lyx_main.C Sun Mar 21 18:17:43 1999 +++ main/lyx_main.C Sun Mar 21 18:12:41 1999 @@ -105,6 +105,15 @@ } } + if (first_start) { + LString splash = i18nLibFileSearch("examples", "splash.lyx"); + lyxerr.debug("Opening splash document "+splash+"..."); + Buffer * loadb = bufferlist.loadLyXFile(splash); + if (loadb != 0) { + last_loaded = loadb; + } + } + if (last_loaded != 0) { lyxerr.debug("Yes we loaded some files."); lyxGUI->regBuf(last_loaded); @@ -343,8 +352,11 @@ // Does user directory exist? FileInfo fileInfo(user_lyxdir); if (fileInfo.isOK() && fileInfo.isDir()) { + first_start = false; return; - } + } else { + first_start = true; + } // Nope if (!AskQuestion(_("You don't have a personal LyX directory."), --- /home/dnaber/cvs/lyx/src/include/lyx_main.h Sun Mar 21 18:17:38 1999 +++ include/lyx_main.h Sun Mar 21 18:15:56 1999 @@ -76,6 +76,8 @@ void ReadRcFile(LString const & name); /// bool easyParse(int *argc, char *argv[]); + /// does this user start lyx for the first time? + bool first_start; //@} };