mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 23:57:25 +00:00
LibCore+Base: Move user-specific config files to $HOME/.config
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user