SDK: Implement DDS helpers

This commit is contained in:
Dennis Klein
2019-07-19 16:34:44 +02:00
committed by Dennis Klein
parent 90496c89fe
commit cfcdd666bf
3 changed files with 36 additions and 1 deletions

View File

@@ -33,6 +33,7 @@ auto LoadDDSEnv(const boost::filesystem::path& config_home, const boost::filesys
std::istringstream cmd;
cmd.str("DDS_CFG=`dds-user-defaults --ignore-default-sid -p`\n"
"if [ -z \"$DDS_CFG\" ]; then\n"
" mkdir -p \"$HOME/.DDS\"\n"
" dds-user-defaults --ignore-default-sid -d -c \"$HOME/.DDS/DDS.cfg\"\n"
"fi");
std::system(cmd.str().c_str());