don't try to run xrandr on XNU/Windows

This commit is contained in:
nick black 2021-09-16 03:27:17 -05:00
parent 5109ff5cd8
commit b2b9655d6f

View File

@ -664,7 +664,9 @@ ncneofetch(struct notcurses* nc){
fi.hostname = notcurses_hostname();
fi.username = notcurses_accountname();
fetch_env_vars(nc, &fi);
fetch_x_props(&fi);
if(kern != NCNEO_XNU && kern != NCNEO_WINDOWS){
fetch_x_props(&fi);
}
if(kern == NCNEO_LINUX){
fetch_cpu_info(&fi);
}else{