fix: Add brave & google-chrome-stable to incognito browser list (#5452)

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
Jacob Nielsen 2024-06-15 12:04:51 +02:00 committed by GitHub
parent c1b2114e61
commit 66471075a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 6 deletions

View file

@ -11,6 +11,7 @@
- Minor: Added the ability to duplicate tabs. (#5277) - Minor: Added the ability to duplicate tabs. (#5277)
- Minor: Improved error messages for channel update commands. (#5429) - Minor: Improved error messages for channel update commands. (#5429)
- Minor: Moderators can now see when users are warned. (#5441) - Minor: Moderators can now see when users are warned. (#5441)
- Minor: Added support for Brave & google-chrome-stable browsers. (#5452)
- Bugfix: Fixed tab move animation occasionally failing to start after closing a tab. (#5426) - Bugfix: Fixed tab move animation occasionally failing to start after closing a tab. (#5426)
- Bugfix: If a network request errors with 200 OK, Qt's error code is now reported instead of the HTTP status. (#5378) - Bugfix: If a network request errors with 200 OK, Qt's error code is now reported instead of the HTTP status. (#5378)
- Bugfix: Fixed restricted users usernames not being clickable. (#5405) - Bugfix: Fixed restricted users usernames not being clickable. (#5405)

View file

@ -16,12 +16,20 @@ QString getPrivateSwitch(const QString &browserExecutable)
{ {
// list of command line switches to turn on private browsing in browsers // list of command line switches to turn on private browsing in browsers
static auto switches = std::vector<std::pair<QString, QString>>{ static auto switches = std::vector<std::pair<QString, QString>>{
{"firefox", "-private-window"}, {"librewolf", "-private-window"}, {"firefox", "-private-window"},
{"waterfox", "-private-window"}, {"icecat", "-private-window"}, {"librewolf", "-private-window"},
{"chrome", "-incognito"}, {"vivaldi", "-incognito"}, {"waterfox", "-private-window"},
{"opera", "-newprivatetab"}, {"opera\\launcher", "--private"}, {"icecat", "-private-window"},
{"iexplore", "-private"}, {"msedge", "-inprivate"}, {"chrome", "-incognito"},
{"firefox-esr", "-private-window"}, {"chromium", "-incognito"}, {"google-chrome-stable", "-incognito"},
{"vivaldi", "-incognito"},
{"opera", "-newprivatetab"},
{"opera\\launcher", "--private"},
{"iexplore", "-private"},
{"msedge", "-inprivate"},
{"firefox-esr", "-private-window"},
{"chromium", "-incognito"},
{"brave", "-incognito"},
}; };
// compare case-insensitively // compare case-insensitively