mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 11:36:10 +00:00
LibCore: Implement StandardPaths::user_data_directory on Windows
This commit is contained in:
parent
10db20a537
commit
2e200489c8
Notes:
github-actions[bot]
2025-03-20 02:26:35 +00:00
Author: https://github.com/stasoid Commit: https://github.com/LadybirdBrowser/ladybird/commit/2e200489c83 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3002 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/AtkinsSJ
1 changed files with 1 additions and 2 deletions
|
@ -157,8 +157,7 @@ ByteString StandardPaths::config_directory()
|
|||
ByteString StandardPaths::user_data_directory()
|
||||
{
|
||||
#ifdef AK_OS_WINDOWS
|
||||
dbgln("Core::StandardPaths::user_data_directory() is not implemented");
|
||||
VERIFY_NOT_REACHED();
|
||||
return ByteString::formatted("{}/Ladybird"sv, getenv("LOCALAPPDATA"));
|
||||
#endif
|
||||
if (auto data_directory = get_environment_if_not_empty("XDG_DATA_HOME"sv); data_directory.has_value())
|
||||
return LexicalPath::canonicalized_path(*data_directory);
|
||||
|
|
Loading…
Add table
Reference in a new issue