Asger Alstrup Nielsen wrote: > I think we should open the splash document if the .lyx directory does not > exist. This is a very nice point to present this, because we are rather sure > that we are dealing with a new user. Okay, here it is ('splash.lyx', which it tries to load, is the file I posted two days ago). 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/
--- lyx1.0.0/src/lyx_main.h Mon Oct 26 23:18:23 1998 +++ lyx/src/lyx_main.h Wed Feb 10 22:01:54 1999 @@ -63,6 +63,8 @@ /**@name Private variables */ //@{ + /// does this user start lyx for the first time? + bool first_start; /// struct sigaction act_; //@} --- lyx1.0.0/src/lyx_main.C Fri Nov 27 09:06:49 1998 +++ lyx/src/lyx_main.C Fri Feb 12 19:57:12 1999 @@ -103,6 +103,14 @@ Buffer *last_loaded = NULL; + if (first_start) { + lyxerr.debug("Opening splash document (examples/splash.lyx)..."); + Buffer * loadb = bufferlist.loadLyXFile(LibFileSearch("examples", +"splash.lyx")); + if (loadb != 0) { + last_loaded = loadb; + } + } + for (int argi = (*argc) - 1; argi >= 1; argi--) { Buffer * loadb = bufferlist.loadLyXFile(argv[argi]); if (loadb != 0) { @@ -348,9 +356,12 @@ // 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."), _("It is needed to keep your own configuration."),