mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-01-11 18:57:11 +01:00
fixed directory bug on linux
This commit is contained in:
parent
84f67a3ac1
commit
0a0f5b8e8c
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user