Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Chromium profiles #321

Merged
merged 1 commit into from
Jan 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Finicky/Finicky/Browsers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ enum Browser: String {
case Vivaldi = "com.vivaldi.vivaldi"
case Safari = "com.apple.safari"
case Wavebox = "com.bookry.wavebox"
case Chromium = "org.chromium.chromium"
}

public func getBrowserCommand(_ browserOpts: BrowserOpts, url: URL) -> [String] {
Expand Down Expand Up @@ -105,7 +106,8 @@ private func getProfileOption(bundleId: String, profile: String) -> [String]? {
Browser.Edge.rawValue,
Browser.EdgeBeta.rawValue,
Browser.Vivaldi.rawValue,
Browser.Wavebox.rawValue:
Browser.Wavebox.rawValue,
Browser.Chromium.rawValue:
return ["--profile-directory=\(profile)"]

// Blisk and Opera doesn't support multiple profiles even though they are Chromium based
Expand Down