mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +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:
committed by
Andrew Kaster
parent
610fe28115
commit
d317309d89
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user