Bug ID 995334
Summary User-defined file type/mime type ignored if a system-defined file name extension matches
Classification openSUSE
Product openSUSE Distribution
Version Leap 42.1
Hardware x86-64
OS openSUSE 42.1
Status NEW
Severity Minor
Priority P5 - None
Component KDE Applications
Assignee opensuse-kde-bugs@opensuse.org
Reporter ulrich.deiters@uni-koeln.de
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:48.0) Gecko/20100101
Firefox/48.0
Build Identifier: 

My test editors and diagram editors store their informations in XML files (file
name pattern *.xml). Of these, one is the master file, which should be opened
by the editor first. In the case of the diagram editor, this file is named
"diagram.xml".

Under openSUSE 13.2 it was possible to define a special file type with the name
pattern "diagram.xml", and then to associate the editor with it. Under 42.1 the
user-defined pattern is ignored, and the file is classified as an XML file.

A similar problem exists for LaTeX documents, where it would be nice to
distinguish between the master document and the included files.

I suspect that, between 13.2 and 42.1, the order of file name comparisons has
been changed.

A workaround is, evidently, to define a new mime type, e.g., "*.mygraphics",
and create a link diagram.xml -> diagram.mygraphics . But this is ugly.



Reproducible: Always

Steps to Reproduce:
1. Using the "system settings" application (under "file association"), set up a
new mime type, e.g., image/x-mygraphics, and set its file pattern to
"diagram.xml". Also associate some icon and an arbitrary application to open
it.
2. Create a file "diagram.xml"
3. Chances are that it the file browser considers it a plain XML file, not a
mygraphics file.
Actual Results:  
The file browser (dolphin) recognizes the file as an XML file, i.e., shows the
XML icon, offers XML applications to open it.

Expected Results:  
The browser should have displayed a different icon and the other application.

using Dolphin as file browser


You are receiving this mail because: