client (Mac): use full path for system_profiler

This commit is contained in:
David Anderson 2024-02-05 01:19:35 -08:00
parent 5b70e5a605
commit bb5a113fe4
1 changed files with 1 additions and 1 deletions

View File

@ -847,7 +847,7 @@ void gpu_warning(vector<string> &warnings, const char* msg) {
#include "mac/mac_spawn.h"
void COPROC_APPLE::get(vector<string>&) {
int retval = callPosixSpawn(
"sh -c 'system_profiler SPDisplaysDataType > temp'"
"sh -c '/usr/sbin/system_profiler SPDisplaysDataType > temp'"
);
if (retval) return;
FILE* f = fopen("temp", "r");