aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/nnn.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 85004e1..a1837fc 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) {