From fae26197b9b070b0b3d2178e3d7f485db163fc08 Mon Sep 17 00:00:00 2001 From: ghosttk Date: Wed, 29 Jun 2022 16:59:25 +0800 Subject: [PATCH] os: add `exo-open` to the list of tried launchers in os.open_uri/1 (#14884) Add 'exo-open' for xfce4 desktop environment. --- vlib/os/open_uri_default.c.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/os/open_uri_default.c.v b/vlib/os/open_uri_default.c.v index 6505e03c23..abfbad96da 100644 --- a/vlib/os/open_uri_default.c.v +++ b/vlib/os/open_uri_default.c.v @@ -8,7 +8,7 @@ pub fn open_uri(uri string) ? { } $else $if freebsd || openbsd { vopen_uri_cmd = 'xdg-open' } $else $if linux { - providers := ['xdg-open', 'x-www-browser', 'www-browser', 'wslview'] + providers := ['xdg-open', 'x-www-browser', 'www-browser', 'wslview', 'exo-open'] // There are multiple possible providers to open a browser on linux // One of them is xdg-open, another is x-www-browser, then there's www-browser, etc. // Look for one that exists and run it