mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
FIX: Change current dirtory of application
Change-Id: I5e070e186cf581643521b4a96d457c3d92699fc5 Jira: none
This commit is contained in:
@@ -2120,6 +2120,8 @@ void GUI_App::init_app_config()
|
|||||||
if (!boost::filesystem::exists(data_dir_path))
|
if (!boost::filesystem::exists(data_dir_path))
|
||||||
boost::filesystem::create_directory(data_dir_path);
|
boost::filesystem::create_directory(data_dir_path);
|
||||||
set_data_dir(data_dir);
|
set_data_dir(data_dir);
|
||||||
|
// Change current dirtory of application
|
||||||
|
chdir(encode_path((data_dir + "/log").c_str()).c_str());
|
||||||
} else {
|
} else {
|
||||||
m_datadir_redefined = true;
|
m_datadir_redefined = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user