Juergen Spitzmueller wrote:
>Environment.GetFolderPath(Environment.SpecialFolder.Personal);
>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemenvironmentspecialfolderclasstopic.asp
> 
> Jürgen

Thank you. Looks like this means
        Environment.SpecialFolder folder;

        // $PREFIX/share/lyx on *nix
        folder = Environment.SpecialFolder::CommonApplicationData;
        system_lyxdir = Environment.GetFolderPath(folder) / "lyx";

        // $HOME/.lyx on *nix
        folder = Environment.SpecialFolder::ApplicationData;
        user_lyxdir = Environment.GetFolderPath(folder) / ".lyx";

        // Defaults to os::binpath() on *nix.
        folder = Environment.SpecialFolder.Personal;
        document_path = Environment.GetFolderPath(folder);

-- 
Angus

Reply via email to