1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

os: add exo-open to the list of tried launchers in os.open_uri/1 (#14884)

Add 'exo-open' for xfce4 desktop environment.
This commit is contained in:
ghosttk 2022-06-29 16:59:25 +08:00 committed by GitHub
parent c481b80ec3
commit fae26197b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ pub fn open_uri(uri string) ? {
} $else $if freebsd || openbsd { } $else $if freebsd || openbsd {
vopen_uri_cmd = 'xdg-open' vopen_uri_cmd = 'xdg-open'
} $else $if linux { } $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 // 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. // 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 // Look for one that exists and run it