]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfunc.C
zlib stuff
[lyx.git] / src / lyxfunc.C
index db6362dd76d209d438fb8a6c89e63d14d2d0f12f..7510fec113a573a6be998af5a83a3dcb1e3c5df4 100644 (file)
@@ -68,6 +68,7 @@
 #include "support/lstrings.h"
 #include "support/tostr.h"
 #include "support/path.h"
+#include "support/path_defines.h"
 #include "support/lyxfunctional.h"
 
 #include <ctime>
@@ -1537,7 +1538,7 @@ void LyXFunc::dispatch(FuncRequest const & ev, bool verbose)
 
        case LFUN_SAVEPREFERENCES:
        {
-               Path p(user_lyxdir);
+               Path p(user_lyxdir());
                lyxrc.write("preferences");
        }
        break;
@@ -1783,7 +1784,7 @@ void LyXFunc::open(string const & fname)
                        make_pair(string(_("Documents|#o#O")),
                                  string(lyxrc.document_path)),
                        make_pair(string(_("Examples|#E#e")),
-                                 string(AddPath(system_lyxdir, "examples"))));
+                                 string(AddPath(system_lyxdir(), "examples"))));
 
                FileDialog::Result result =
                        fileDlg.open(initpath,
@@ -1858,7 +1859,7 @@ void LyXFunc::doImport(string const & argument)
                        make_pair(string(_("Documents|#o#O")),
                                  string(lyxrc.document_path)),
                        make_pair(string(_("Examples|#E#e")),
-                                 string(AddPath(system_lyxdir, "examples"))));
+                                 string(AddPath(system_lyxdir(), "examples"))));
 
                string const extension = "*." + formats.extension(format)
                        + "| " + formats.prettyName(format)