From 2276e3ddfdfadb814ff3b6f0545012c4c3a9c962 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Sat, 21 Dec 2019 22:38:35 +0530 Subject: Use CLI flags spawning CLI opener as default FM --- src/nnn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/nnn.c') diff --git a/src/nnn.c b/src/nnn.c index 20b7b25..33ac941 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -5792,6 +5792,7 @@ int main(int argc, char *argv[]) initpath = "/"; } else { arg = argv[optind]; + DPRINTF_S(arg); if (strlen(arg) > 7 && !strncmp(arg, "file://", 7)) arg = arg + 7; initpath = realpath(arg, NULL); @@ -5814,7 +5815,7 @@ int main(int argc, char *argv[]) } if (S_ISREG(sb.st_mode)) { - spawn(opener, arg, NULL, NULL, F_NOWAIT); + spawn(opener, arg, NULL, NULL, cfg.cliopener ? F_CLI : F_NOTRACE | F_NOWAIT); return _SUCCESS; } } -- cgit v1.2.3-70-g09d2