prasmussen / chrome-cli

Control Google Chrome from the command line
MIT License
2.61k stars 89 forks source link

add ability to specify chromium browsers like brave #57

Closed darrenjennings closed 3 years ago

darrenjennings commented 4 years ago

Would be nice to identify any chromium browser running such as Brave re: https://github.com/prasmussen/chrome-cli/issues/31#issuecomment-592900874

darrenjennings commented 4 years ago

I was able to build a brave version successfully in App.m

-    chromeApplication *chrome = [SBApplication applicationWithBundleIdentifier:@"com.google.Chrome"];
+    chromeApplication *chrome = [SBApplication applicationWithBundleIdentifier:@"com.brave.Browser"];
bradparks commented 3 years ago

This fork builds for brave supposedly as well https://github.com/gtrabanco/chrome-cli/commit/640b8832f6f589e99112154c1708889bb426f065

prasmussen commented 3 years ago

The latest version lets you override the bundle identifier, check the readme for more details. If you install via homebrew it comes bundled with brave-cli and vivaldi-cli.