diff --git a/Userland/DevTools/UserspaceEmulator/main.cpp b/Userland/DevTools/UserspaceEmulator/main.cpp index 4916edd6d8..e62239b71a 100644 --- a/Userland/DevTools/UserspaceEmulator/main.cpp +++ b/Userland/DevTools/UserspaceEmulator/main.cpp @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #include @@ -27,8 +28,11 @@ int main(int argc, char** argv, char** env) auto executable_path = Core::find_executable_in_path(command[0]); if (executable_path.is_empty()) { - reportln("Cannot find executable for '{}'.", command[0]); - return 1; + executable_path = Core::File::real_path_for(command[0]); + if (executable_path.is_empty()) { + reportln("Cannot find executable for '{}'.", executable_path); + return 1; + } } Vector arguments;