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:
parent
c481b80ec3
commit
fae26197b9
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user