Skip to content

Commit

Permalink
fix config path setup
Browse files Browse the repository at this point in the history
  • Loading branch information
NikhilNarayana committed Sep 30, 2023
1 parent cd5f053 commit dc19e64
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Source/Core/UICommon/UICommon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -470,10 +470,9 @@ void SetUserDirectory(std::string custom_path)
#else
const config_dir_name = PLAYBACK_USER_DIR;
#endif
user_path = std::string(config_home && config_home[0] == '/' ?
config_home + DIR_SEP config_dir_name DIR_SEP :
(home_path + ".config")) +
DIR_SEP config_dir_name DIR_SEP;
const auto config_path =
std::string(config_home && config_home[0] == '/' ? config_home : (home_path + ".config"));
user_path = config_path + DIR_SEP + config_dir_name + DIR_SEP;
// user_path = home_path + "." NORMAL_USER_DIR DIR_SEP;

// if (!File::Exists(user_path))
Expand Down

0 comments on commit dc19e64

Please sign in to comment.