https://bugs.kde.org/show_bug.cgi?id=452566

            Bug ID: 452566
           Summary: KDE offers to open mimetype with application twice
                    when it inherits the association twice
           Product: frameworks-kservice
           Version: 5.93.0
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: fa...@kde.org
          Reporter: adam.m.fontenot+...@gmail.com
                CC: kdelibs-b...@kde.org
  Target Milestone: ---

SUMMARY

This is related to, but not quite the same as, Bug 425154 (see last comment),
which describes a corner case that still needs to be addressed...

Basically, if a mimetype inherits the same application twice (which can easily
happen in multiple-inheritance cases), KDE will show the application twice in
menus and the system settings module. 

STEPS TO REPRODUCE
1. Create a JSON file. 
2. Set okular to open the mimetypes "application/x-executable" and
"text/plain". Apply changes.
3. Right click on the JSON file in dolphin, and see what programs are made
available to open the file.

OBSERVED RESULT

Okular appears twice in the results.

EXPECTED RESULT

Okular appears once in the results, at the position it inherits *first* in a
breadth-first search of the inherited mimetypes of application/json.

SOFTWARE/OS VERSIONS
Linux: Arch Linux (kernel 5.17.1)
KDE Plasma Version: 5.24.4 (X11)
KDE Frameworks Version: 5.93.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION

The positions Okular appears at in the results appear to suggest that kservice
is searching the inherited mimetypes in depth-first order instead of
breadth-first. This is incorrect and leads to the corner case issue described
in the comments of Bug 425154.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to