std::string const & binary_dir() const;
/** The top of the LyX source code tree.
- * Used by the GTK frontend when searching for .glade files.
*/
std::string const & top_srcdir() const;
/** The user_support directory was set explicitly using either
* the -userdir command line switch or
- * the LYX_USERDIR_14x environment variable.
+ * the LYX_USERDIR_15x environment variable.
*/
bool explicit_user_support() const;
*/
std::string & document_dir() const;
- /** The path to the temporary directory.
+ /** The path to the system temporary directory.
* (Eg /tmp on *nix.)
+ */
+ std::string const & system_temp_dir() const;
+
+ /** The path to the temporary directory used by LyX.
+ * (Eg /tmp/lyx_tmpdir800nBI1z9 on *nix.)
* Can be reset by LyXRC.
*/
std::string & temp_dir() const;
std::string locale_dir_;
mutable std::string document_dir_;
mutable std::string temp_dir_;
+ std::string system_temp_dir_;
std::string home_dir_;
std::string configure_command_;
bool explicit_user_support_dir_;
return temp_dir_;
}
+inline
+std::string const & Package::system_temp_dir() const
+{
+ return system_temp_dir_;
+}
+
inline
std::string const & Package::home_dir() const
{