I need to create a bash file that executes google chrome (if installed) with some flags and an input file. Does someone know how to detect chrome installation and path via a bash file?
Bash file to detect chrome installation
bashgoogle-chrome
Related Question
- Terminal Google-Chrome – Creating Command to Open File
- MacOS – Chrome AutoSelectCertificateForUrls OSX
- MacOS – close all the instances of google chrome except first
- Colors by file type in terminal (running bash)
- Default Bash 3 overriding shebang /bin/bash with brew installed bash 4
- Using Google Chrome on macOS to run Windows executable (.EXE files)
Best Answer
This will check if Chrome is installed in the default location, then open a file at a path with arguments you have set.