getBrowserPath function
Implementation
Future<String> getBrowserPath() async {
//check if the edge path exists
if (File(LOCAL_EDGE_PATH).existsSync()) {
Show.info("browser found", "at", LOCAL_EDGE_PATH);
return LOCAL_EDGE_PATH;
} else {
if (File(LOCAL_DOWNLOAD_PATH).existsSync()) {
Show.info("browser found", "at", LOCAL_DOWNLOAD_PATH);
return LOCAL_DOWNLOAD_PATH;
} else {
return await ask_user_for_prefered_browser();
}
}
}