diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2019-12-21 22:38:35 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2019-12-21 22:38:35 +0530 |
commit | 2276e3ddfdfadb814ff3b6f0545012c4c3a9c962 (patch) | |
tree | ad290a089b506686c7d8b1d1e8f9ce16cba9ddc9 /src/nnn.c | |
parent | 9dee99b4568dd96a971b9e1bef4195c567e5e017 (diff) | |
download | nnn-2276e3ddfdfadb814ff3b6f0545012c4c3a9c962.tar.gz |
Use CLI flags spawning CLI opener as default FM
Diffstat (limited to 'src/nnn.c')
-rw-r--r-- | src/nnn.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; } } |