change config location to .config insted of $home
This commit is contained in:
2
main.cpp
2
main.cpp
@@ -47,7 +47,7 @@ int main(int argc, char **argv)
|
||||
|
||||
if (save_location.empty() && args != Arg::File)
|
||||
{
|
||||
printf("No save location, try selecting folder (-f)\n");
|
||||
printf("No save location, try selecting save folder (-f)\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@@ -195,7 +195,8 @@ std::optional<std::string> get_save_path()
|
||||
}
|
||||
|
||||
fs::path userDirectory(homeDir);
|
||||
userDirectory /= ".password_manager";
|
||||
userDirectory /= ".config";
|
||||
userDirectory /= "password_manager";
|
||||
|
||||
if (!fs::exists(userDirectory))
|
||||
{
|
||||
|
Reference in New Issue
Block a user