]> git.lyx.org Git - lyx.git/blobdiff - src/LyX.cpp
style
[lyx.git] / src / LyX.cpp
index 99ce873b61c0394db4ea9517df9b6eb55e655a3b..41c69f7dae4d77f031290dfed4b0dede36b8de3d 100644 (file)
@@ -563,10 +563,8 @@ void LyX::execCommands()
                // if some files were specified at command-line we assume that the
                // user wants to edit *these* files and not to restore the session.
                for (size_t i = 0; i != pimpl_->files_to_load_.size(); ++i) {
-                       FileName const abs_path = 
-                               support::makeAbsPath(pimpl_->files_to_load_[i]);
                        lyx::dispatch(
-                               FuncRequest(LFUN_FILE_OPEN, abs_path.absoluteFilePath()));
+                               FuncRequest(LFUN_FILE_OPEN, pimpl_->files_to_load_[i]));
                }
                // clear this list to save a few bytes of RAM
                pimpl_->files_to_load_.clear();
@@ -846,6 +844,7 @@ bool LyX::init()
                lyxrc.print();
 
        os::windows_style_tex_paths(lyxrc.windows_style_tex_paths);
+       // Prepend path prefix a second time to take the user preferences into a account
        if (!lyxrc.path_prefix.empty())
                prependEnvPath("PATH", replaceEnvironmentPath(lyxrc.path_prefix));