Jean-Marc Lasgouttes wrote: >>>>>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> >>>>>> writes: > > Angus> Thank you. Looks like this means Environment.SpecialFolder > Angus> folder; > > This is as long as you program in C#, of course :)
Don't think so. From Jürgen's page: [C++] [Serializable] __value public enum Environment.SpecialFolder Of course, it does require the existence of a .NET development environment. I remember downloading one for free from Microsoft. Nothing to do with any compiler. I wonder where I installed it ;-) > Angus> // $PREFIX/share/lyx on *nix > Angus> folder = Environment.SpecialFolder::CommonApplicationData; > Angus> system_lyxdir = Environment.GetFolderPath(folder) / "lyx"; > > Yes, or maybe "LyX" Good. > Angus> // $HOME/.lyx on *nix folder = > Angus> Environment.SpecialFolder::ApplicationData; > Angus> user_lyxdir = Environment.GetFolderPath(folder) / ".lyx"; > > Why not "LyX" instead of ".lyx"? There is no reason of using this on > non-unix systems. Good again. > Angus> // Defaults to os::binpath() on *nix. > > I guess you mean os::homepath(). > > Angus> folder = Environment.SpecialFolder.Personal; > Angus> document_path = Environment.GetFolderPath(folder); I didn't look at the code, but I did read the comment in src/lyxrc.C case RC_DOCUMENTPATH: str = _("The default path for your documents. An empty value selects the directory LyX was started from."); break; -- Angus