fixed directory bug on linux

This commit is contained in:
Ryzerth 2020-12-22 23:04:46 +01:00
parent 84f67a3ac1
commit 0a0f5b8e8c

View File

@ -1,5 +1,6 @@
#include <options.h>
#include <spdlog/spdlog.h>
#include <stdlib.h>
namespace options {
CMDLineOptions opts;
@ -8,7 +9,8 @@ namespace options {
#ifdef _WIN32
opts.root = ".";
#else
opts.root = "~/.config/sdrpp";
std::string homedir = getenv("HOME");
opts.root = homedir + "/.config/sdrpp";
#endif
}