Universal path for Chrome on *nix systems?
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I'm looking to write a shell script that will detect all of the common places to find:
- Google Chrome
- Chromium
Installed for any given *Nix distribution.
The common ones I know of are:
/usr/bin/google-chrome
/usr/bin/chromium-browser
/usr/bin/chromium
/usr/bin/chrome
- On
PATH
Is there a more official list somewhere? How is chromedriver doing this same logic does anyone know?
chrome
add a comment |Â
up vote
0
down vote
favorite
I'm looking to write a shell script that will detect all of the common places to find:
- Google Chrome
- Chromium
Installed for any given *Nix distribution.
The common ones I know of are:
/usr/bin/google-chrome
/usr/bin/chromium-browser
/usr/bin/chromium
/usr/bin/chrome
- On
PATH
Is there a more official list somewhere? How is chromedriver doing this same logic does anyone know?
chrome
You need to consider two things: how is the binary named, and where is it stored. Currently you only cover the first.
â nohillside
Apr 10 at 18:37
any chance you can craft this comment up into an answer with what i'm missing?
â Nicholas DiPiazza
Apr 10 at 19:37
by the way, i'm only looking for the "standard" place they would be found. I don't have to cover any custom, non-typical scenarios. I'm just trying to do as good of a job as chromedriver does when finding a suitable chrome executable.
â Nicholas DiPiazza
Apr 10 at 19:39
1
I would at least go through PATH
â nohillside
Apr 10 at 19:46
good idea. i'll add that to the list
â Nicholas DiPiazza
Apr 10 at 20:01
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm looking to write a shell script that will detect all of the common places to find:
- Google Chrome
- Chromium
Installed for any given *Nix distribution.
The common ones I know of are:
/usr/bin/google-chrome
/usr/bin/chromium-browser
/usr/bin/chromium
/usr/bin/chrome
- On
PATH
Is there a more official list somewhere? How is chromedriver doing this same logic does anyone know?
chrome
I'm looking to write a shell script that will detect all of the common places to find:
- Google Chrome
- Chromium
Installed for any given *Nix distribution.
The common ones I know of are:
/usr/bin/google-chrome
/usr/bin/chromium-browser
/usr/bin/chromium
/usr/bin/chrome
- On
PATH
Is there a more official list somewhere? How is chromedriver doing this same logic does anyone know?
chrome
edited Apr 10 at 20:01
asked Apr 10 at 17:40
Nicholas DiPiazza
142111
142111
You need to consider two things: how is the binary named, and where is it stored. Currently you only cover the first.
â nohillside
Apr 10 at 18:37
any chance you can craft this comment up into an answer with what i'm missing?
â Nicholas DiPiazza
Apr 10 at 19:37
by the way, i'm only looking for the "standard" place they would be found. I don't have to cover any custom, non-typical scenarios. I'm just trying to do as good of a job as chromedriver does when finding a suitable chrome executable.
â Nicholas DiPiazza
Apr 10 at 19:39
1
I would at least go through PATH
â nohillside
Apr 10 at 19:46
good idea. i'll add that to the list
â Nicholas DiPiazza
Apr 10 at 20:01
add a comment |Â
You need to consider two things: how is the binary named, and where is it stored. Currently you only cover the first.
â nohillside
Apr 10 at 18:37
any chance you can craft this comment up into an answer with what i'm missing?
â Nicholas DiPiazza
Apr 10 at 19:37
by the way, i'm only looking for the "standard" place they would be found. I don't have to cover any custom, non-typical scenarios. I'm just trying to do as good of a job as chromedriver does when finding a suitable chrome executable.
â Nicholas DiPiazza
Apr 10 at 19:39
1
I would at least go through PATH
â nohillside
Apr 10 at 19:46
good idea. i'll add that to the list
â Nicholas DiPiazza
Apr 10 at 20:01
You need to consider two things: how is the binary named, and where is it stored. Currently you only cover the first.
â nohillside
Apr 10 at 18:37
You need to consider two things: how is the binary named, and where is it stored. Currently you only cover the first.
â nohillside
Apr 10 at 18:37
any chance you can craft this comment up into an answer with what i'm missing?
â Nicholas DiPiazza
Apr 10 at 19:37
any chance you can craft this comment up into an answer with what i'm missing?
â Nicholas DiPiazza
Apr 10 at 19:37
by the way, i'm only looking for the "standard" place they would be found. I don't have to cover any custom, non-typical scenarios. I'm just trying to do as good of a job as chromedriver does when finding a suitable chrome executable.
â Nicholas DiPiazza
Apr 10 at 19:39
by the way, i'm only looking for the "standard" place they would be found. I don't have to cover any custom, non-typical scenarios. I'm just trying to do as good of a job as chromedriver does when finding a suitable chrome executable.
â Nicholas DiPiazza
Apr 10 at 19:39
1
1
I would at least go through PATH
â nohillside
Apr 10 at 19:46
I would at least go through PATH
â nohillside
Apr 10 at 19:46
good idea. i'll add that to the list
â Nicholas DiPiazza
Apr 10 at 20:01
good idea. i'll add that to the list
â Nicholas DiPiazza
Apr 10 at 20:01
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
Chromedriver looks for files in the following locations:
/usr/local/sbin
/usr/local/bin
/usr/sbin
/usr/bin
/sbin
/bin
/opt/google/chrome
File names that it searches for are:
google-chrome
chrome
chromium
chromium-browser
The relevant code is here.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
Chromedriver looks for files in the following locations:
/usr/local/sbin
/usr/local/bin
/usr/sbin
/usr/bin
/sbin
/bin
/opt/google/chrome
File names that it searches for are:
google-chrome
chrome
chromium
chromium-browser
The relevant code is here.
add a comment |Â
up vote
2
down vote
accepted
Chromedriver looks for files in the following locations:
/usr/local/sbin
/usr/local/bin
/usr/sbin
/usr/bin
/sbin
/bin
/opt/google/chrome
File names that it searches for are:
google-chrome
chrome
chromium
chromium-browser
The relevant code is here.
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
Chromedriver looks for files in the following locations:
/usr/local/sbin
/usr/local/bin
/usr/sbin
/usr/bin
/sbin
/bin
/opt/google/chrome
File names that it searches for are:
google-chrome
chrome
chromium
chromium-browser
The relevant code is here.
Chromedriver looks for files in the following locations:
/usr/local/sbin
/usr/local/bin
/usr/sbin
/usr/bin
/sbin
/bin
/opt/google/chrome
File names that it searches for are:
google-chrome
chrome
chromium
chromium-browser
The relevant code is here.
answered Apr 25 at 11:50
Alexander Semashko
362
362
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f436835%2funiversal-path-for-chrome-on-nix-systems%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
You need to consider two things: how is the binary named, and where is it stored. Currently you only cover the first.
â nohillside
Apr 10 at 18:37
any chance you can craft this comment up into an answer with what i'm missing?
â Nicholas DiPiazza
Apr 10 at 19:37
by the way, i'm only looking for the "standard" place they would be found. I don't have to cover any custom, non-typical scenarios. I'm just trying to do as good of a job as chromedriver does when finding a suitable chrome executable.
â Nicholas DiPiazza
Apr 10 at 19:39
1
I would at least go through PATH
â nohillside
Apr 10 at 19:46
good idea. i'll add that to the list
â Nicholas DiPiazza
Apr 10 at 20:01