aboutsummaryrefslogtreecommitdiff
path: root/url-mode.c
diff options
context:
space:
mode:
Diffstat (limited to 'url-mode.c')
-rw-r--r--url-mode.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/url-mode.c b/url-mode.c
index 57f47dd0..c6340e94 100644
--- a/url-mode.c
+++ b/url-mode.c
@@ -74,8 +74,9 @@ spawn_url_launcher_with_token(struct terminal *term,
(const char *[]){url},
&argc, &argv))
{
- ret = spawn(term->reaper, term->cwd, argv,
- dev_null, dev_null, dev_null, xdg_activation_token);
+ ret = spawn(
+ term->reaper, term->cwd, argv,
+ dev_null, dev_null, dev_null, NULL, NULL, xdg_activation_token) >= 0;
for (size_t i = 0; i < argc; i++)
free(argv[i]);