FIX: Change current dirtory of application
Change-Id: I5e070e186cf581643521b4a96d457c3d92699fc5 Jira: none
This commit is contained in:
parent
52b816b657
commit
0bf2fa181a
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue