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) {
6105
6105
}
6106
6106
else if (browser == Brave ) {
6107
6107
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 ;
6109
6112
}
6110
6113
else if (browser == Firefox ) {
6111
6114
executables [0 ] = "firefox" ;
@@ -6578,6 +6581,21 @@ static bool _webui_browser_exist(_webui_window_t* win, size_t browser) {
6578
6581
if (win ) WEBUI_SN_PRINTF_DYN (win -> browser_path , WEBUI_MAX_PATH , "brave" );
6579
6582
BraveExist = true;
6580
6583
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;
6581
6599
} else
6582
6600
return false;
6583
6601
#endif
You can’t perform that action at this time.
0 commit comments