Fix the check for the enviroment variable
I tried running reicast and it immediately died with: terminate called after throwing an instance of 'std::logic_error' what(): basic_string::_S_construct null not valid Aborted I was missing the environment variable XDG_CONFIG_DIRS Turns out find_system_config_dirs() checked for the existence of XDG_DATA_DIRS but then tried to use XDG_CONFIG_DIRS (non-existent in my case). fixes #847
This commit is contained in:
parent
0e4949e7bd
commit
dde4647e55
|
@ -347,7 +347,7 @@ string find_user_data_dir()
|
|||
std::vector<string> find_system_config_dirs()
|
||||
{
|
||||
std::vector<string> dirs;
|
||||
if (getenv("XDG_DATA_DIRS") != NULL)
|
||||
if (getenv("XDG_CONFIG_DIRS") != NULL)
|
||||
{
|
||||
string s = (string)getenv("XDG_CONFIG_DIRS");
|
||||
|
||||
|
|
Loading…
Reference in New Issue