fork_rv = fork(); if (fork_rv == 0) { // we\'re in the child chdir(view.path); execlp("xdg-open", "xdg-open", FOCUSED.name, NULL);