Announcement

Collapse
No announcement yet.

Wrong browser is launching

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Wrong browser is launching

    I installed Google Chrome, it's working fine, I set it as the default browser in Systems Settings, yet, when I double-click some .desktop files or use "xdg-open https://domain.com' at the terminal, Firefox launches.

    Here's a .desktop file that behaves this way:

    Code:
    [Desktop Entry]
    Icon=text-html
    Name[en_US]=env vars
    Name=env vars
    Type=Link
    URL[$e]=https://www.serverlab.ca/tutorials/linux/administration-linux/how-to-set-environment-variables-in-linux/
    Plus:

    ~/.local/share/applications/mimeapps.list does not exist.

    And:
    Code:
    dave@MONOLITH:~$ xdg-settings get default-web-browser
    google-chrome.desktop
    
    dave@MONOLITH:~$ xdg-settings --list
    Known properties:
    default-url-scheme-handler Default handler for URL scheme
    default-web-browser Default web browser​
    I also looked in ~/.bashrc, ~./bash_login, ~/.bash_profile, and ~/.profile and see no mentions of either browser anywhere (not all of those files exist).

    Yet:

    dave@MONOLITH:~$ xdg-mime query default x-scheme-handler/https
    firefox_firefox.desktop

    (emphasis is mine)

    I'm not sure how to change that, or if it's the source of the problem. Or why it didn't get changed when I setup
    K>System Settings>Default Applications>Web Browser (or when Chrome got installed).
    Last edited by Snowhog; Jun 14, 2023, 12:33 PM.

    #2
    It won't let me update the post, but I'm on "Linux MONOLITH 5.19.0-43-generic #44~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon May 22 13:39:36 UTC 2 x86_64 x86_64 x86_64 GNU/Linux​" (forgot to mention).

    Comment


      #3
      Settings --> Applications --> Default Applications --> Browser (set Browser to FireFox)
      "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
      – John F. Kennedy, February 26, 1962.

      Comment


        #4
        What does checking xdg-settings show?
        xdg-settings get default-web-browser

        If the settings do not match in System Settings, after changing them, the do it manually:
        Code:
        xdg-settings set default-web-browser google-chrome.desktop
        and to check if things are fine:

        Code:
        xdg-settings check default-web-browser google-chrome.desktop

        Comment


          #5
          @GreyGeek: Why set it to Firefox? I want Chrome. That is already set to Chrome (as I said in the first post).

          @claydoh:

          Code:
          dave@MONOLITH:~$ xdg-settings get default-web-browser
          google-chrome.desktop
          dave@MONOLITH:~$ xdg-settings check default-web-browser google-chrome.desktop
          yes
          dave@MONOLITH:~$
          Still, Firefox launches.​

          Comment


            #6
            Since setting the default browser, have you restarted/rebooted?
            Using Kubuntu Linux since March 23, 2007
            "It is a capital mistake to theorize before one has data." - Sherlock Holmes

            Comment


            • Qqmike
              Qqmike commented
              Editing a comment
              That's a good point! Don't ask me how I know that.

            #7
            Brain fart. Sorry about that.
            Try Settings --> Applications --> File Associations --> Text (add Chrome or move it to the top of the list)
            "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
            – John F. Kennedy, February 26, 1962.

            Comment


              #8
              Originally posted by GreyGeek View Post
              Brain fart. Sorry about that.
              Try Settings --> Applications --> File Associations --> Text (add Chrome or move it to the top of the list)
              That worked!

              Thank you!

              Can you please explain why and how?

              Comment

              Working...
              X