]> Sergey Matveev's repositories - nnn.git/commitdiff
Remove weak check for CLI detection
authorArun Prakash Jana <engineerarun@gmail.com>
Thu, 3 Oct 2019 12:44:51 +0000 (18:14 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Thu, 3 Oct 2019 12:44:51 +0000 (18:14 +0530)
src/nnn.c

index a1837fcf946d84f474f4d9c5490a36a1dd94a942..85004e121ad7328453af76e0dafe3ae76763c56b 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -3390,11 +3390,6 @@ 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) {