Skip to content

Commit e839f47

Browse files
committed
respect $BROWSER env in linux
1 parent 403c8f4 commit e839f47

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Native/Linux.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ public string FindTerminal(Models.ShellOrTerminal shell)
6363

6464
public void OpenBrowser(string url)
6565
{
66-
Process.Start("xdg-open", url.Quoted());
66+
var browser = Environment.GetEnvironmentVariable("BROWSER");
67+
if (string.IsNullOrEmpty(browser))
68+
browser = "xdg-open";
69+
Process.Start(browser, url.Quoted());
6770
}
6871

6972
public void OpenInFileManager(string path, bool select)

0 commit comments

Comments
 (0)