Skip to content

Commit 053b8d6

Browse files
authored
fix: add browser names from Flathub (#623)
* Add browser names from FlatHub * Lint
1 parent 8f6e767 commit 053b8d6

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/queries.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,24 +220,28 @@ const browser_appnames = {
220220
'Google-chrome',
221221
'chrome.exe',
222222
'google-chrome-stable',
223+
'com.google.Chrome',
223224

224225
// Chromium
225226
'Chromium',
226227
'Chromium-browser',
227228
'chromium-browser',
228229
'Chromium-browser-chromium',
229230
'chromium.exe',
231+
'org.chromium.Chromium',
230232

231233
// Pre-releases
232234
'Google-chrome-beta',
233235
'Google-chrome-unstable',
236+
'com.google.ChromeDev',
234237
],
235238
firefox: [
236239
// Firefox
237240
'Firefox',
238241
'Firefox.exe',
239242
'firefox',
240243
'firefox.exe',
244+
'org.mozilla.firefox',
241245

242246
// Firefox Developer
243247
'Firefox Developer Edition',
@@ -259,15 +263,17 @@ const browser_appnames = {
259263
'librewolf',
260264
'librewolf.exe',
261265
'librewolf-default',
266+
'io.gitlab.librewolf-community',
262267

263268
// Waterfox
264269
'Waterfox',
265270
'Waterfox.exe',
266271
'waterfox',
267272
'waterfox.exe',
273+
'net.waterfox.waterfox',
268274
],
269-
opera: ['opera.exe', 'Opera'],
270-
brave: ['Brave-browser', 'Brave Browser', 'brave.exe'],
275+
opera: ['opera.exe', 'Opera', 'com.opera.Opera'],
276+
brave: ['Brave-browser', 'Brave Browser', 'brave.exe', 'com.brave.Browser'],
271277
edge: [
272278
'msedge.exe', // Windows
273279
'Microsoft Edge', // macOS
@@ -277,14 +283,16 @@ const browser_appnames = {
277283
'microsoft-edge', // linux
278284
'microsoft-edge-beta', // linux beta
279285
'microsoft-edge-dev', // linux dev
286+
'com.microsoft.Edge',
287+
'com.microsoft.EdgeDev',
280288
],
281289
arc: [
282290
'Arc.exe', // Windows
283291
'Arc', // macOS
284292
],
285-
vivaldi: ['Vivaldi-stable', 'Vivaldi-snapshot', 'vivaldi.exe', 'Vivaldi'],
293+
vivaldi: ['Vivaldi-stable', 'Vivaldi-snapshot', 'vivaldi.exe', 'Vivaldi', 'com.vivaldi.Vivaldi'],
286294
orion: ['Orion'],
287-
yandex: ['Yandex'],
295+
yandex: ['Yandex', 'ru.yandex.Browser'],
288296
};
289297

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

0 commit comments

Comments
 (0)