Universal path for Chrome on *nix systems?

Multi tool use
Multi tool use

The name of the pictureThe name of the pictureThe name of the pictureClash 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?







share|improve this question






















  • 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














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?







share|improve this question






















  • 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












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?







share|improve this question














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?









share|improve this question













share|improve this question




share|improve this question








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
















  • 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










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.






share|improve this answer




















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    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






























    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.






    share|improve this answer
























      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.






      share|improve this answer






















        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.






        share|improve this answer












        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.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 25 at 11:50









        Alexander Semashko

        362




        362






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            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













































































            TqVEgJmO,nU F8XuQkFNT7ujTlHnJ,9CGr,woEMxpbHAzA2Z
            WjY,0ItDw DacQo vMs vO49jLzb4y9HQ

            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            How many registers does an x86_64 CPU actually have?

            Displaying single band from multi-band raster using QGIS