Bug 183026 - freedesktop mimetype aliases not loaded
Summary: freedesktop mimetype aliases not loaded
Status: RESOLVED WORKSFORME
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Slackware Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-03 17:51 UTC by Thanos Kyritsis
Modified: 2023-01-13 05:13 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thanos Kyritsis 2009-02-03 17:51:13 UTC
Version:           4.2.0 (using KDE 4.2.0)
OS:                Linux
Installed from:    Slackware Packages

I think KDE 4 does not take into consideration (load) freedesktop mimetype aliases.

In order to reproduce, for examples let's take the application/x-subrip mimetype. From /usr/share/mime/packages/freedesktop.org.xml:

<mime-type type="application/x-subrip">
  <alias type="application/x-srt"/>

(update-mime-database /usr/share/mime is run on my distro, so /usr/share/mime/applications/x-subrip.xml is in place and it contains:

<mime-type xmlns="http://www.freedesktop.org/standards/shared-mime-info" type="application/x-subrip">
  <!--Created automatically by update-mime-database. DO NOT EDIT!-->
[SNIP other stuff ....]
  <alias type="application/x-srt"/>
  <sub-class-of type="text/plain"/>
  <generic-icon name="text-x-generic"/>
</mime-type>
)

Now, to reproduce:

Method 1:
K -> System Settings -> Advanced -> File Associations, we type x-srt in the filter and nothing is displayed below.

Method 2:
Let's say I am an application developer, freedesktop compatible, and register a .desktop [desktop entry] in /usr/share/applications/myapp.desktop:

[Desktop Entry]
Categories=AudioVideo;
Comment=my comment
Exec=myapp %f
GenericName=MyApp
Icon=myapp
MimeType=application/x-srt;
Name=MyApp
Terminal=false
Type=Application

This also doesn't work. It won't register my application to handle .srt files, it's not listed anywhere in File Associations.

If I register the application for MimeType=application/x-subrip; of course it works, but what about the mimetype alias ??

It used to work under KDE3, I think there was x-srt loaded under File Associations (The problem came up when I upgraded to KDE4).
Comment 1 Tijl Coosemans 2011-07-12 17:20:52 UTC
Another example is that in recent versions of shared-mime-info audio/x-flac has been renamed to audio/flac, with audio/x-flac as alias. Applications such as Amarok and VLC still associate themselves with audio/x-flac and that association isn't shown under File Associations nor can *.flac files be opened from a file manager. This issue has also been reported in bug 268896.
Comment 2 Andrew Crouthamel 2018-11-06 15:06:20 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Andrew Crouthamel 2018-11-17 04:56:18 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Justin Zobel 2022-12-14 03:09:09 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 5 Bug Janitor Service 2022-12-29 05:22:49 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2023-01-13 05:13:43 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!