Skip to content

Commit 699119f

Browse files
committed
Adding Linux Brave (Stable, Nightly, Beta)
1 parent 27679f3 commit 699119f

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

src/webui.c

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6105,7 +6105,10 @@ static bool _webui_custom_browser_exist(_webui_window_t* win, size_t browser) {
61056105
}
61066106
else if (browser == Brave) {
61076107
executables[0] = "brave";
6108-
executables[1] = NULL;
6108+
executables[1] = "brave-browser-stable";
6109+
executables[2] = "brave-browser-nightly";
6110+
executables[3] = "brave-browser-beta";
6111+
executables[4] = NULL;
61096112
}
61106113
else if (browser == Firefox) {
61116114
executables[0] = "firefox";
@@ -6578,6 +6581,21 @@ static bool _webui_browser_exist(_webui_window_t* win, size_t browser) {
65786581
if(win) WEBUI_SN_PRINTF_DYN(win->browser_path, WEBUI_MAX_PATH, "brave");
65796582
BraveExist = true;
65806583
return true;
6584+
} else if (_webui_cmd_sync(win, "brave-browser-stable --version", false) == 0) {
6585+
6586+
if(win) WEBUI_SN_PRINTF_DYN(win->browser_path, WEBUI_MAX_PATH, "brave-browser-stable");
6587+
BraveExist = true;
6588+
return true;
6589+
} else if (_webui_cmd_sync(win, "brave-browser-nightly --version", false) == 0) {
6590+
6591+
if(win) WEBUI_SN_PRINTF_DYN(win->browser_path, WEBUI_MAX_PATH, "brave-browser-nightly");
6592+
BraveExist = true;
6593+
return true;
6594+
} else if (_webui_cmd_sync(win, "brave-browser-beta --version", false) == 0) {
6595+
6596+
if(win) WEBUI_SN_PRINTF_DYN(win->browser_path, WEBUI_MAX_PATH, "brave-browser-beta");
6597+
BraveExist = true;
6598+
return true;
65816599
} else
65826600
return false;
65836601
#endif

0 commit comments

Comments
 (0)