File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments