X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2FPackage.h;h=4e5c6fa3f46e78f11ba64ab80ca0304ae5e017bf;hb=28be7d552f62cc02fa86d7f79201d089bfb2d7b5;hp=064f662e4e37577d2a1da284818bb3a2c67d3e86;hpb=149b574b07f20bdd13c34d8d56a0bc4b91eea5a2;p=lyx.git diff --git a/src/support/Package.h b/src/support/Package.h index 064f662e4e..4e5c6fa3f4 100644 --- a/src/support/Package.h +++ b/src/support/Package.h @@ -51,7 +51,7 @@ Package const & package(); class Package { public: /// Default constructor does not lead to the paths being set. - Package() {} + Package() : explicit_user_support_dir_(false), in_build_dir_(false) {} /** Called by init_package, above. * All paths will be initialized. @@ -134,11 +134,11 @@ public: */ static FileName const & get_home_dir(); - /** Command to run the configure script. - * Caution: This is "ready-to-run", i.e. in the locale encoding, not - * utf8. - */ - std::string const & configure_command() const { return configure_command_; } + /// Run configure.py + int reconfigureUserLyXDir(std::string const & option) const; + + /// + std::string getConfigureLockName() const; private: FileName binary_dir_; @@ -151,7 +151,11 @@ private: mutable FileName document_dir_; mutable FileName temp_dir_; FileName system_temp_dir_; - std::string configure_command_; + /** Command to run the configure script. + * Caution: This is "ready-to-run", i.e. in the locale encoding, not + * utf8. + */ + mutable std::string configure_command_; bool explicit_user_support_dir_; bool in_build_dir_; };