From: Arun Prakash Jana Date: Wed, 2 Oct 2019 22:14:54 +0000 (+0530) Subject: Fix X-Git-Tag: v2.7~18 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=f4ec874b791326674d73aaf1d34cdd50a5a9e06d;p=nnn.git Fix --- diff --git a/src/nnn.c b/src/nnn.c index 85004e12..a1837fcf 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -3390,6 +3390,11 @@ static void browse(char *ipath) if (!pnamebuf) errexit(); +#ifdef __linux__ + if (!getenv("DISPLAY")) + opener_flags = F_CLI; +#endif + begin: #ifdef LINUX_INOTIFY if ((presel == FILTER || dir_changed) && inotify_wd >= 0) {