File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -1720,7 +1720,6 @@ namespace webui{
17201720 if (browser::command_browser (" sh -c \" " + full + " >>/dev/null 2>>/dev/null\" " ) == 0 )
17211721 #endif
17221722 {
1723-
17241723 browser::CurrentBrowser = firefox;
17251724 return true ;
17261725 }
@@ -1781,7 +1780,7 @@ namespace webui{
17811780 if (!create_profile_folder (chrome))
17821781 return false ;
17831782
1784- std::string arg = " --user-data-dir=\" " + frofile_path + " \" --disable-gpu --disable-software-rasterizer --no-proxy-server --app=" ;
1783+ std::string arg = " --user-data-dir=\" " + frofile_path + " \" --disable-gpu --disable-software-rasterizer --no-proxy-server --safe-mode --disable-extensions -- app=" ;
17851784 std::string full (browser::browser_path);
17861785 full.append (arg);
17871786 full.append (address);
@@ -1802,9 +1801,14 @@ namespace webui{
18021801 bool start (std::string address, unsigned short browser){
18031802
18041803 // Non existing browser
1805- if (browser > 99 )
1804+ if (browser > 10 )
18061805 return false ;
18071806
1807+ #ifdef __linux__
1808+ if (address.at (0 ) == ' /' )
1809+ address = " file://" + address;
1810+ #endif
1811+
18081812 if (browser != 0 ){
18091813
18101814 // Specified browser
@@ -1858,7 +1862,7 @@ namespace webui{
18581862 // Linux
18591863 if (!start_chrome (address))
18601864 if (!start_firefox (address))
1861- if (!start_edge (paddressort ))
1865+ if (!start_edge (address ))
18621866 if (!start_custom (address))
18631867 return false ;
18641868 // webui::exit();
You can’t perform that action at this time.
0 commit comments