aboutsummaryrefslogtreecommitdiff
path: root/url-mode.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2024-07-25 16:32:57 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-07-25 16:32:57 +0000
commita213e14ca35e73a1f353ae97f2e398d145e19f69 (patch)
treefb1624e20a7380b18621259d3c9d5913083176ac /url-mode.c
parentinput: allow mouse selections to start inside the margins (diff)
parentosc+notify: strcmp() -> streq() (diff)
Merge branch 'kitty-notifications'
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]);