Skip to content

[Bug][Preferred Applications] Setting preferred browser doesn't update xdg-mime #13656

@CalebMorris

Description

@CalebMorris

Distribution

Linux Mint 22.3 - Cinnamon 64-bit

Package version

Linux Mint 22.3 - Cinnamon 64-bit

Graphics hardware in use

GeForce GTX 970

Frequency

Always

Bug description

When using Preferred Applications tool to change Web section to a new browser (Brave Flatpak 1.88.132), it changes the Cinammon interactions opening web pages in Brave, but doesn't change the behavior of the default open command run from the terminal.
open /path/to/example.html uses xdg-mime which was showing Firefox (xdg-mime query default text/html -> firefox.desktop) which it should have been pointing to the brave instance.

Workaround

Manually setting it with xdg-mime default com.brave.Browser.desktop text/html works

Steps to reproduce

  1. Install LinuxMint
  2. Install Brave flatpak
  3. Open Preferred Applications
  4. Change web browser preference to Brave
  5. Open terminal and run xdg-mime query default text/html
  6. Observe - Firefox is still the default

Alternatively

  1. Install Brave flatpak
  2. Set Preferred browser (in Preferred Applications) to firefox
  3. Set xdg-mime default firefox.desktop text/html to change it to firefox
  4. Set Preferred browser to Brave
  5. Open terminal and run xdg-mime query default text/html
  6. Observe - Firefox is still the default

Expected behavior

Changing the default browser should change it for all setup mime systems.

Additional information

gio mime text/html has com.brave.Browser.desktop at the top as expected

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions