]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix
authorArun Prakash Jana <engineerarun@gmail.com>
Wed, 2 Oct 2019 22:14:54 +0000 (03:44 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Wed, 2 Oct 2019 22:14:54 +0000 (03:44 +0530)
src/nnn.c

index 85004e121ad7328453af76e0dafe3ae76763c56b..a1837fcf946d84f474f4d9c5490a36a1dd94a942 100644 (file)
--- 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) {