mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:08:10 +00:00
LibCore+Base: Move user-specific config files to $HOME/.config
This commit is contained in:
parent
7b15c85ff5
commit
bc615572a9
9 changed files with 11 additions and 2 deletions
|
@ -36,8 +36,8 @@ namespace Core {
|
|||
|
||||
NonnullRefPtr<ConfigFile> ConfigFile::get_for_app(const String& app_name)
|
||||
{
|
||||
String home_path = StandardPaths::home_directory();
|
||||
auto path = String::format("%s/%s.ini", home_path.characters(), app_name.characters());
|
||||
String directory = StandardPaths::config_directory();
|
||||
auto path = String::format("%s/%s.ini", directory.characters(), app_name.characters());
|
||||
return adopt(*new ConfigFile(path));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue