Skip to content

Commit d3b616b

Browse files
committed
feat!: Allow firefox profiles
1 parent 53fc149 commit d3b616b

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

apps/finicky/src/browser/browsers.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,15 @@
5252
"id": "net.imput.helium",
5353
"type": "Chromium",
5454
"app_name": "Helium"
55+
},
56+
{
57+
"id": "org.mozilla.firefoxdeveloperedition",
58+
"type": "Firefox",
59+
"app_name": "Firefox Developer Edition"
60+
},
61+
{
62+
"id": "org.mozilla.firefox",
63+
"type": "Firefox",
64+
"app_name": "Firefox"
5565
}
5666
]

apps/finicky/src/browser/launcher.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ import (
1111
"path/filepath"
1212
"strings"
1313

14-
"al.essio.dev/pkg/shellescape"
1514
"finicky/util"
15+
16+
"al.essio.dev/pkg/shellescape"
1617
)
1718

1819
//go:embed browsers.json
@@ -169,6 +170,8 @@ func resolveBrowserProfileArgument(identifier string, profile string) (string, b
169170

170171
if profile != "" {
171172
switch matchedBrowser.Type {
173+
case "Firefox":
174+
return "-P=" + shellescape.Quote(profile), true
172175
case "Chromium":
173176
homeDir, err := util.UserHomeDir()
174177
if err != nil {

0 commit comments

Comments
 (0)