Check for lsof before trying to use it
@@ -658,6 +658,9 @@ void init_system_info(){
wineVersion = "";
}
// check for gamemode and vkbasalt
+ if (system("which lsof > /dev/null 2>&1")) {
+ printf("MANGOHUD: lsof is missing, can't check for gamemode and vkbasalt");
+ } else {
auto pid = getpid();
string command = "lsof -lnPX -L -p " + to_string(pid) + " | grep gamemode";
string ret = exec(command);
@@ -667,6 +670,7 @@ void init_system_info(){
ret = exec(command);
if (!ret.empty())
HUDElements.vkbasalt_bol = true;
+ }
//driver = itox(device_data->properties.driverVersion);
if (ld_preload)
