mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:28:12 +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
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