xdg-settings set default-url-scheme-handler changes the entry for mime type text/html
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xdg-utils (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
From https:/
Reproduce:
1. Ensure that `text/html` in *$HOME/
2. Create a .desktop file named *telegram-
3. run `xdg-settings set default-
4. Now `xdg-open` or `gio open` will open any HTML file not in firefox, but with telegram.
5. in *$HOME/
Expected behaviour:
HTML files are opened in firefox or the app defined before.
Actual behaviour:
HTML files are opened in Telegram (which cannot handle this).
telegram-desktop is an example, and is how I experienced this issue. I'm not familiar enough with scheme-handlers and xdg-utils to be able to boil down a desktop-file to the bare minimals to reproduce this. Sorry for that.
*telegram-
```
[Desktop Entry]
X-SnapInstanceN
Version=1.0
Name=Telegram Desktop
Comment=Official desktop version of Telegram messaging app
Exec=env BAMF_DESKTOP_
Icon=/snap/
Terminal=false
StartupWMClass=
Type=Application
Categories=
MimeType=
Keywords=
```
I've gotten this file by installing telegram with snap and it is then located at */var/lib/