mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 08:10:02 +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: 2e200489c8
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()
|
ByteString StandardPaths::user_data_directory()
|
||||||
{
|
{
|
||||||
#ifdef AK_OS_WINDOWS
|
#ifdef AK_OS_WINDOWS
|
||||||
dbgln("Core::StandardPaths::user_data_directory() is not implemented");
|
return ByteString::formatted("{}/Ladybird"sv, getenv("LOCALAPPDATA"));
|
||||||
VERIFY_NOT_REACHED();
|
|
||||||
#endif
|
#endif
|
||||||
if (auto data_directory = get_environment_if_not_empty("XDG_DATA_HOME"sv); data_directory.has_value())
|
if (auto data_directory = get_environment_if_not_empty("XDG_DATA_HOME"sv); data_directory.has_value())
|
||||||
return LexicalPath::canonicalized_path(*data_directory);
|
return LexicalPath::canonicalized_path(*data_directory);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue