Set as Default Browser will create unnecessary mime xml in ~/.local/share/mime/packages/
Categories
(Firefox :: Shell Integration, defect)
Tracking
()
People
(Reporter: qydwhotmail, Unassigned)
Details
Attachments
(1 file)
59.72 KB,
text/plain
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0
Steps to reproduce:
Click "Set as Default Browser"
Actual results:
Some mime xml files are created in ~/.local/share/mime/packages/
This causes Qt mime database return wrong mime type for html files (application/x-extension-html)
See also: https://bbs.archlinux.org/viewtopic.php?id=267553
Expected results:
Return text/html
Reporter | ||
Updated•3 years ago
|
Comment 1•3 years ago
|
||
Hello I have tried to reproduce the issue using firefox 104.0a1(2022-07-12) on Ubuntu 22.04 but unfortunately I wasn't able to reproduce the issue.
Could you please answer the following questions in order to further investigate this issue.
- Does this issue happen with a new profile? Here is a link on how to create one: https://support.mozilla.org/en-US/kb/profile-manager-create-remove-switch-firefox-profiles
- Does this issue happen in the latest nightly? Here is a link from where you can download it: https://www.mozilla.org/en-US/firefox/channel/desktop/
- Do you have any addons installed if so can you list them?
Comment 2•3 years ago
|
||
Moving this to the correct component.
Comment 3•3 years ago
|
||
I am also unable to reproduce this. I tried with both Ubuntu's snap build and my own Nightly, and neither made any changes to ~/.local/share/mime/packages
.
Fusion, can you please provide a few more details on your setup? Specifically:
- Which distro do you run?
- Which Desktop Environment?
- Please attach the contents of
about:support
Comment 4•3 years ago
|
||
Closing due to lack of information. Please feel free to re-open at any time with the requested information.
Reporter | ||
Comment 5•3 years ago
|
||
Which distro do you run?
openSUSE Tumbleweed 20221115
Which Desktop Environment?
KDE Plasma 5.26.80
Please attach the contents of about:support
Reporter | ||
Comment 6•3 years ago
|
||
Reporter | ||
Updated•3 years ago
|
Reporter | ||
Comment 7•3 years ago
|
||
It seems those mimetype files are generated according to MimeType property in the desktop file.
Reporter | ||
Comment 8•3 years ago
|
||
There are 5 files created in the directory
user-extension-htm.xml
user-extension-html.xml
user-extension-shtml.xml
user-extension-xht.xml
user-extension-xhtml.xml
Updated•3 years ago
|
Comment 9•3 years ago
|
||
I can reproduce the file creation with the setup described in Comment 5. Using the test program in the linked thread I can reproduce the issue.
I did some debugging and it seems that these files are created when we call g_app_info_set_as_default_for_extension
, here.
It's not clear to me whether there is some reason that we shouldn't make this call in this situation. I don't see anything in the documentation suggesting that this shouldn't be called in any particular circumstances. I'm inclined to say that if calling GTK code is causing problems on a distribution, then it sounds like there is a problem with GTK or the distribution. Probably a bug should be filed with one of them, but I'm not entirely sure which one. I'm guessing the distribution?
Comment 10•3 years ago
|
||
Come to think of it, this could even be a bug in Qt. I'm not really sure how any of this is supposed to work.
Description
•