From d37c30fdb123ed38514d141a83ed593be0616584 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AB=8F=E8=A8=AA=E5=AD=90?= Date: Tue, 25 Jun 2024 14:22:12 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=81=E3=82=A7=E3=83=83=E3=82=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/resolution.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/resolution.c b/src/resolution.c index 2671a02..5e6e6da 100644 --- a/src/resolution.c +++ b/src/resolution.c @@ -15,7 +15,8 @@ const char *display_resolution() { if ( isexist == NULL || strlen(isexist) == 0 || - strncmp(isexist, "xrandr not found", strlen("xrandr not found")) == 0 + strncmp(isexist, "xrandr not found", strlen("xrandr not found")) == 0 || + strstr(isexist, "which: no xrandr in") ) { if (isexist) free((void *)isexist); return NULL;