mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
Everywhere: Unport Core::System::current_executable_path from new string
Storing paths in AK::String is never correct.
This commit is contained in:
parent
610fe28115
commit
d317309d89
Notes:
sideshowbarker
2024-07-16 22:18:54 +09:00
Author: https://github.com/DanShaders
Commit: d317309d89
Pull-request: https://github.com/SerenityOS/serenity/pull/21612
Reviewed-by: https://github.com/ADKaster
9 changed files with 12 additions and 12 deletions
|
@ -17,7 +17,7 @@ DeprecatedString s_serenity_resource_root;
|
|||
ErrorOr<String> application_directory()
|
||||
{
|
||||
auto current_executable_path = TRY(Core::System::current_executable_path());
|
||||
auto dirname = LexicalPath::dirname(current_executable_path.to_deprecated_string());
|
||||
auto dirname = LexicalPath::dirname(current_executable_path);
|
||||
return String::from_deprecated_string(dirname);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue