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:
parent
88ccaae11e
commit
bb831a27dd
2 changed files with 45 additions and 0 deletions
|
@ -273,4 +273,6 @@ ErrorOr<String> resolve_executable_from_environment(StringView filename, int fla
|
|||
|
||||
char** environment();
|
||||
|
||||
ErrorOr<String> current_executable_path();
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue