diff --git a/src/util/IncognitoBrowser.cpp b/src/util/IncognitoBrowser.cpp index 81cb2ffda..2b6cdc222 100644 --- a/src/util/IncognitoBrowser.cpp +++ b/src/util/IncognitoBrowser.cpp @@ -14,19 +14,18 @@ namespace { { // list of command line switches to turn on private browsing in browsers static auto switches = std::vector>{ - {"firefox", "-private-window"}, {"chrome", "-incognito"}, - {"vivaldi", "--private"}, {"opera", "-newprivatetab"}, - {"iexplore", "-private"}, + {"firefox", "-private-window"}, {"chrome", "-incognito"}, + {"vivaldi", "-incognito"}, {"opera", "-newprivatetab"}, + {"opera\\\\launcher", "--private"}, {"iexplore", "-private"}, }; // transform into regex and replacement string std::vector> replacers; for (const auto &switch_ : switches) { replacers.emplace_back( - QRegularExpression("(" + switch_.first + "\\.exe\"?).*"), + QRegularExpression("(" + switch_.first + "\\.exe\"?).*", + QRegularExpression::CaseInsensitiveOption), "\\1 " + switch_.second); - - log("(" + switch_.first + "\\.exe\"?).*"); } // try to find matching regex and apply it