How to set the default web browser used to open URLs under i3?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
3
down vote

favorite
1












I have tried to set my default browser for opening URLs to Chromium using:



xdg-settings set default-web-browser chromium.desktop


(yes I checked out whether /usr/share/applications/chromium.desktop existed first before running this command and it does exist) and it returns:



xdg-settings: unknown desktop environment


i3 isn't a desktop environment so I can definitely understand this error, but is there a way around it? The reason I want xdg-open to open URLs using Chromium is that running notebook() from the SageMath command-line attempts to open the notebook in one's default web browser (using xdg-open). Presently this obviously fails (no browser, or application for that matter, is opened to the URL), so I'd like to get this to work which I believe will require me to get xdg-open to open URLs in Chromium.










share|improve this question



























    up vote
    3
    down vote

    favorite
    1












    I have tried to set my default browser for opening URLs to Chromium using:



    xdg-settings set default-web-browser chromium.desktop


    (yes I checked out whether /usr/share/applications/chromium.desktop existed first before running this command and it does exist) and it returns:



    xdg-settings: unknown desktop environment


    i3 isn't a desktop environment so I can definitely understand this error, but is there a way around it? The reason I want xdg-open to open URLs using Chromium is that running notebook() from the SageMath command-line attempts to open the notebook in one's default web browser (using xdg-open). Presently this obviously fails (no browser, or application for that matter, is opened to the URL), so I'd like to get this to work which I believe will require me to get xdg-open to open URLs in Chromium.










    share|improve this question

























      up vote
      3
      down vote

      favorite
      1









      up vote
      3
      down vote

      favorite
      1






      1





      I have tried to set my default browser for opening URLs to Chromium using:



      xdg-settings set default-web-browser chromium.desktop


      (yes I checked out whether /usr/share/applications/chromium.desktop existed first before running this command and it does exist) and it returns:



      xdg-settings: unknown desktop environment


      i3 isn't a desktop environment so I can definitely understand this error, but is there a way around it? The reason I want xdg-open to open URLs using Chromium is that running notebook() from the SageMath command-line attempts to open the notebook in one's default web browser (using xdg-open). Presently this obviously fails (no browser, or application for that matter, is opened to the URL), so I'd like to get this to work which I believe will require me to get xdg-open to open URLs in Chromium.










      share|improve this question















      I have tried to set my default browser for opening URLs to Chromium using:



      xdg-settings set default-web-browser chromium.desktop


      (yes I checked out whether /usr/share/applications/chromium.desktop existed first before running this command and it does exist) and it returns:



      xdg-settings: unknown desktop environment


      i3 isn't a desktop environment so I can definitely understand this error, but is there a way around it? The reason I want xdg-open to open URLs using Chromium is that running notebook() from the SageMath command-line attempts to open the notebook in one's default web browser (using xdg-open). Presently this obviously fails (no browser, or application for that matter, is opened to the URL), so I'd like to get this to work which I believe will require me to get xdg-open to open URLs in Chromium.







      i3 xdg-open






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 16 '17 at 2:29

























      asked Aug 16 '17 at 2:19









      Brenton Horne

      1,41432149




      1,41432149




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          Unfortunately I don't have a solution for you, but for reference, I can tell you that



          xdg-settings set default-web-browser <mybrowser>.desktop


          works perfectly well for me, as of today, using i3 and arch. I would look elsewhere for the solution to your problem.





          share








          New contributor




          alec is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.

















            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%2f386321%2fhow-to-set-the-default-web-browser-used-to-open-urls-under-i3%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
            0
            down vote













            Unfortunately I don't have a solution for you, but for reference, I can tell you that



            xdg-settings set default-web-browser <mybrowser>.desktop


            works perfectly well for me, as of today, using i3 and arch. I would look elsewhere for the solution to your problem.





            share








            New contributor




            alec is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.





















              up vote
              0
              down vote













              Unfortunately I don't have a solution for you, but for reference, I can tell you that



              xdg-settings set default-web-browser <mybrowser>.desktop


              works perfectly well for me, as of today, using i3 and arch. I would look elsewhere for the solution to your problem.





              share








              New contributor




              alec is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.



















                up vote
                0
                down vote










                up vote
                0
                down vote









                Unfortunately I don't have a solution for you, but for reference, I can tell you that



                xdg-settings set default-web-browser <mybrowser>.desktop


                works perfectly well for me, as of today, using i3 and arch. I would look elsewhere for the solution to your problem.





                share








                New contributor




                alec is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                Unfortunately I don't have a solution for you, but for reference, I can tell you that



                xdg-settings set default-web-browser <mybrowser>.desktop


                works perfectly well for me, as of today, using i3 and arch. I would look elsewhere for the solution to your problem.






                share








                New contributor




                alec is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.








                share


                share






                New contributor




                alec is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                answered 2 mins ago









                alec

                1




                1




                New contributor




                alec is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.





                New contributor





                alec is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






                alec is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f386321%2fhow-to-set-the-default-web-browser-used-to-open-urls-under-i3%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

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

                    Displaying single band from multi-band raster using QGIS

                    How many registers does an x86_64 CPU actually have?