mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-01-26 01:34:43 +01:00
fixed directory bug on linux
This commit is contained in:
parent
84f67a3ac1
commit
0a0f5b8e8c
@ -1,5 +1,6 @@
|
|||||||
#include <options.h>
|
#include <options.h>
|
||||||
#include <spdlog/spdlog.h>
|
#include <spdlog/spdlog.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
namespace options {
|
namespace options {
|
||||||
CMDLineOptions opts;
|
CMDLineOptions opts;
|
||||||
@ -8,7 +9,8 @@ namespace options {
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
opts.root = ".";
|
opts.root = ".";
|
||||||
#else
|
#else
|
||||||
opts.root = "~/.config/sdrpp";
|
std::string homedir = getenv("HOME");
|
||||||
|
opts.root = homedir + "/.config/sdrpp";
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user