1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:37:46 +00:00

LibCore: Add Core::System::current_executable_path()

This is based on Jakt::File::current_executable_path() and all the other
sources I looked at to figure out the per-platform way to do this. My
goodness, every platform has its own bespoke way.
This commit is contained in:
Andrew Kaster 2023-08-02 16:56:53 -06:00 committed by Andreas Kling
parent 88ccaae11e
commit bb831a27dd
2 changed files with 45 additions and 0 deletions

View file

@ -273,4 +273,6 @@ ErrorOr<String> resolve_executable_from_environment(StringView filename, int fla
char** environment();
ErrorOr<String> current_executable_path();
}