Skip to content

Commit

Permalink
fix: add browser names from Flathub (#623)
Browse files Browse the repository at this point in the history
* Add browser names from FlatHub

* Lint
  • Loading branch information
BelKed authored Feb 6, 2025
1 parent 8f6e767 commit 053b8d6
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,24 +220,28 @@ const browser_appnames = {
'Google-chrome',
'chrome.exe',
'google-chrome-stable',
'com.google.Chrome',

// Chromium
'Chromium',
'Chromium-browser',
'chromium-browser',
'Chromium-browser-chromium',
'chromium.exe',
'org.chromium.Chromium',

// Pre-releases
'Google-chrome-beta',
'Google-chrome-unstable',
'com.google.ChromeDev',
],
firefox: [
// Firefox
'Firefox',
'Firefox.exe',
'firefox',
'firefox.exe',
'org.mozilla.firefox',

// Firefox Developer
'Firefox Developer Edition',
Expand All @@ -259,15 +263,17 @@ const browser_appnames = {
'librewolf',
'librewolf.exe',
'librewolf-default',
'io.gitlab.librewolf-community',

// Waterfox
'Waterfox',
'Waterfox.exe',
'waterfox',
'waterfox.exe',
'net.waterfox.waterfox',
],
opera: ['opera.exe', 'Opera'],
brave: ['Brave-browser', 'Brave Browser', 'brave.exe'],
opera: ['opera.exe', 'Opera', 'com.opera.Opera'],
brave: ['Brave-browser', 'Brave Browser', 'brave.exe', 'com.brave.Browser'],
edge: [
'msedge.exe', // Windows
'Microsoft Edge', // macOS
Expand All @@ -277,14 +283,16 @@ const browser_appnames = {
'microsoft-edge', // linux
'microsoft-edge-beta', // linux beta
'microsoft-edge-dev', // linux dev
'com.microsoft.Edge',
'com.microsoft.EdgeDev',
],
arc: [
'Arc.exe', // Windows
'Arc', // macOS
],
vivaldi: ['Vivaldi-stable', 'Vivaldi-snapshot', 'vivaldi.exe', 'Vivaldi'],
vivaldi: ['Vivaldi-stable', 'Vivaldi-snapshot', 'vivaldi.exe', 'Vivaldi', 'com.vivaldi.Vivaldi'],
orion: ['Orion'],
yandex: ['Yandex'],
yandex: ['Yandex', 'ru.yandex.Browser'],
};

// Returns a list of (browserName, bucketId) pairs for found browser buckets
Expand Down

0 comments on commit 053b8d6

Please sign in to comment.