This commit is contained in:
Vaxry 2023-12-29 17:50:58 +01:00
parent 256274d0cc
commit e050543243

View file

@ -52,19 +52,14 @@ int main(int argc, char** argv, char** envp) {
int ret = 0; int ret = 0;
try { try {
if (!getenv("SHELL"))
setenv("SHELL", "/bin/sh", true);
std::cout << "Starting test\n"; std::cout << "Starting test\n";
Hyprlang::CConfig config("./config/config.conf"); Hyprlang::CConfig config("./config/config.conf");
pConfig = &config;
try { currentPath = std::filesystem::canonical("./config/");
pConfig = &config;
currentPath = std::filesystem::canonical("./config/");
} catch (std::logic_error& e) {
std::cout << "err " << e.what() << std::endl;
return 1;
}
std::cout << "start add" << std::endl;
// setup config // setup config
config.addConfigValue("testInt", 0L); config.addConfigValue("testInt", 0L);