]> Sergey Matveev's repositories - nnn.git/commitdiff
Fix opening files from browser
authorArun Prakash Jana <engineerarun@gmail.com>
Wed, 30 Oct 2019 14:47:31 +0000 (20:17 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Wed, 30 Oct 2019 14:47:31 +0000 (20:17 +0530)
src/nnn.c

index 0a577ff3288e2b7ea74c2ce7a83b9962be5f4f3b..289dccb14dbe4a18466b90f5c9df6ecd642b73e6 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -5501,7 +5501,7 @@ int main(int argc, char *argv[])
                }
 
                if (S_ISREG(sb.st_mode)) {
-                       execlp(opener, opener, arg, NULL);
+                       spawn(opener, arg, NULL, NULL, F_NOWAIT);
                        return _SUCCESS;
                }
        }