<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>321706</bug_id>
          
          <creation_ts>2013-06-28 11:46:37 +0000</creation_ts>
          <short_desc>Some file type association can&apos;t be changed anymore</short_desc>
          <delta_ts>2014-07-10 22:45:13 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>systemsettings</product>
          <component>kcm_filetypes</component>
          <version>4.10.97</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>regression</keywords>
          <priority>NOR</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Janek Bevendorff">kde</reporter>
          <assigned_to name="David Faure">faure</assigned_to>
          <cc>Admc</cc>
    
    <cc>amichai2</cc>
    
    <cc>arthur</cc>
    
    <cc>briceguido</cc>
    
    <cc>cfeck</cc>
    
    <cc>ciprian.lica</cc>
    
    <cc>dietrichmathias</cc>
    
    <cc>e.gerber</cc>
    
    <cc>eugene.shalygin+bugzilla.kde</cc>
    
    <cc>george.labuschagne</cc>
    
    <cc>hrvoje.senjan</cc>
    
    <cc>janow49420</cc>
    
    <cc>jonan88</cc>
    
    <cc>kfunk</cc>
    
    <cc>l12436.tw</cc>
    
    <cc>lnxusr</cc>
    
    <cc>mahen</cc>
    
    <cc>master.homer</cc>
    
    <cc>mattloss34</cc>
    
    <cc>mklapetek</cc>
    
    <cc>oss</cc>
    
    <cc>pierino.the.living.joke</cc>
    
    <cc>rcburness</cc>
    
    <cc>rdieter</cc>
    
    <cc>rohan</cc>
    
    <cc>serhiy.int</cc>
    
    <cc>stupor_scurvy343</cc>
    
    <cc>subscriber</cc>
    
    <cc>s_chriscollins</cc>
    
    <cc>tomboy1986</cc>
          
          <cf_commitlink>http://commits.kde.org/kdelibs/7f42bf2530090526d0150428fe58b87123317e2e</cf_commitlink>
          <cf_versionfixedin>4.11.1</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1379942</commentid>
    <comment_count>0</comment_count>
    <who name="Janek Bevendorff">kde</who>
    <bug_when>2013-06-28 11:46:37 +0000</bug_when>
    <thetext>The file type association dialog is broken in 4.11 beta1.
When I want to change the order of the default applications for a file the setting is simply not remembered. I can remove applications from the list and I can add new ones, but I can&apos;t reorder the already existing associations.

Reproducible: Always

Steps to Reproduce:
1. Either go to System Settings-&gt;File associations or right click on a file in Dolphin and click Properties-&gt;File Type Options
2. Reorder the default applications for a file type and click OK.
3. Reopen the dialog

Actual Results:  
The order of the file associations is the same as before, nothing has changed.

Expected Results:  
The new order should be remembered.

This bug only occurs for the default file type associations that are already present. When I add a new application to the list I can change its position, but all default (i.e. system-wide) MIME associations can&apos;t be reordered in any way.

This may be related to Bug 319359.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1379988</commentid>
    <comment_count>1</comment_count>
    <who name="Rohan Garg">rohan</who>
    <bug_when>2013-06-28 14:03:22 +0000</bug_when>
    <thetext>Seems to work for me, can you check if you have rw permissions for ~/.local/share/applications/mimeapps.list ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1380009</commentid>
    <comment_count>2</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2013-06-28 16:10:28 +0000</bug_when>
    <thetext>It seems to depend on the file type. Here, I can reorder applications for image/jpeg, but not for video/x-ms-wmv. I have rw permission to mimeapps.list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1380012</commentid>
    <comment_count>3</comment_count>
    <who name="Rohan Garg">rohan</who>
    <bug_when>2013-06-28 16:15:32 +0000</bug_when>
    <thetext>Indeed, I can&apos;t change the order of applications for video/x-ms-wmv as well. However, this seems to be more of a UI issue since my mimeapps.list does have the correct ordering.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1380047</commentid>
    <comment_count>4</comment_count>
    <who name="Janek Bevendorff">kde</who>
    <bug_when>2013-06-28 18:16:37 +0000</bug_when>
    <thetext>I tried it for Matroska files. Probably a general issue with foo/x-bar 
MIME types?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1380049</commentid>
    <comment_count>5</comment_count>
    <who name="Janek Bevendorff">kde</who>
    <bug_when>2013-06-28 18:23:00 +0000</bug_when>
    <thetext>Addition: just tried for MP3 files, it works. It still does not work 
for MKVs, though.
But although the correct entry is written to the mimeapps.list file, 
this is definitely not just a UI issue because the file still opens in 
the wrong application. E.g. when I have an MKV file and it has the 
applications mkvinfo, VLC, Handbrake (in order) and I put VLC first, it 
still opens in mkvinfo after saving the changes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1380615</commentid>
    <comment_count>6</comment_count>
    <who name="zless">arthur</who>
    <bug_when>2013-07-01 16:55:18 +0000</bug_when>
    <thetext>I also observed this issue with the mkv filetype.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1384095</commentid>
    <comment_count>7</comment_count>
    <who name="Eugene Shalygin">eugene.shalygin+bugzilla.kde</who>
    <bug_when>2013-07-17 17:54:07 +0000</bug_when>
    <thetext>I have the similar problem: can edit, for instance, image/x-eps, but can not application/rtf.

Moreover, not only keditfiletype application/rtf can not save assotiation (mimeapps.list is updated), but even after 
$ xdg-mime default libreoffice-writer.desktop application/rtf  (mimeapps.list is updated)
$ xdg-mime query default application/rtf prints kate.desktop

Does it mean that the problem is not in KDE?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1387626</commentid>
    <comment_count>8</comment_count>
    <who name="Mathias Tillman">master.homer</who>
    <bug_when>2013-08-02 12:49:57 +0000</bug_when>
    <thetext>I too have this problem using KDE 4.11 (4.10.95).

@Eugene Shalygin xdg-mime uses KDE programs to query and set mime types. So if you edit xdg-mime and make detectDE set DE to gnome for example it will most likely work. I believe KDE uses ktraderclient to find out the mimetypes list (which internally pulls its data from ksycoca4), you can try this yourself using ktraderclient --mimetype application/rtf --servicetype Application.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1388072</commentid>
    <comment_count>9</comment_count>
    <who name="Mathias Tillman">master.homer</who>
    <bug_when>2013-08-05 14:39:18 +0000</bug_when>
    <thetext>I have done some more testing and it appears like this problem is due to how KDE handles mimetypes and their parents, it seems like it doesn&apos;t adhere to the ordering if a mimetype has a parent. For example application/rtf has the parent text/plain, and video/x-matroska application/x-matroska, if I change the order of application/rtf it&apos;s not listed properly, but if I change text/plain it does, same goes for video/x-matroska. One other thing I noticed is that the parent mimetype needs to have the same desktop files set as it&apos;s child, or the order will be screwed up, the child will list its desktop files first (excluding the ones that exist in the parent) followed by the parent&apos;s desktop files. Here is an example list of my mkv setup:

mimeapps.list:
application/x-matroska=vlc.desktop;ghb.desktop;mkv-extractor-gui.desktop;
video/x-matroska=ghb.desktop;kde4-dragonplayer.desktop;vlc.desktop;mkv-extractor-gui.desktop;

System Settings list for video/x-matroska:
kde4-dragonplayer.desktop, vlc.desktop, ghb.desktop, mkv-extractor-gui.desktop

As you can see it first goes through video/x-matroska and adds desktop files that are not part of the parent first, then adds the parent desktop files, in order.

I hope that makes sense and that you can use this information, I have looked through the KDE code myself but it feels like it&apos;ll be like finding a needle in a haystack as I&apos;m not very used to how the KDE code is written etc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1388167</commentid>
    <comment_count>10</comment_count>
      <attachid>81578</attachid>
    <who name="Mathias Tillman">master.homer</who>
    <bug_when>2013-08-06 04:59:12 +0000</bug_when>
    <thetext>Created attachment 81578
Should fix mimetypes not being saved properly</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1388168</commentid>
    <comment_count>11</comment_count>
    <who name="Mathias Tillman">master.homer</who>
    <bug_when>2013-08-06 04:59:31 +0000</bug_when>
    <thetext>I looked through the code and found out where the problem is, and it is caused by this commit: https://projects.kde.org/projects/kde/kdelibs/repository/revisions/871cccc8a88a600c8f850a020d44bfc5f5858caa I have attached a patch that should fix this problem but I had to disable the fix above of it to work. The patch contains a reworked way of detecting &quot;duplicate&quot; mimetypes though, which should work, it did for me anyway</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1388836</commentid>
    <comment_count>12</comment_count>
    <who name="Frank Reininghaus">frank78ac</who>
    <bug_when>2013-08-10 08:02:09 +0000</bug_when>
    <thetext>*** Bug 323326 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1388838</commentid>
    <comment_count>13</comment_count>
    <who name="Frank Reininghaus">frank78ac</who>
    <bug_when>2013-08-10 08:04:45 +0000</bug_when>
    <thetext>*** Bug 323029 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1388854</commentid>
    <comment_count>14</comment_count>
      <attachid>81627</attachid>
    <who name="Mathias Tillman">master.homer</who>
    <bug_when>2013-08-10 09:55:24 +0000</bug_when>
    <thetext>Created attachment 81627
New version that should be slightly faster</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1389961</commentid>
    <comment_count>15</comment_count>
    <who name="Mathias Dietrich">dietrichmathias</who>
    <bug_when>2013-08-15 12:57:18 +0000</bug_when>
    <thetext>What&apos;s the actual status of the patch ? I still have this issue in 4.11.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1389996</commentid>
    <comment_count>16</comment_count>
    <who name="TOM Harrison">l12436.tw</who>
    <bug_when>2013-08-15 15:15:58 +0000</bug_when>
    <thetext>i have patch this patch, but because i did not know what package need to compile or which program.
when i compile all. the kde work not correct</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1389999</commentid>
    <comment_count>17</comment_count>
    <who name="TOM Harrison">l12436.tw</who>
    <bug_when>2013-08-15 15:19:58 +0000</bug_when>
    <thetext>ok i found, build kded.
and this resolved the problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1390063</commentid>
    <comment_count>18</comment_count>
    <who name="">lnxusr</who>
    <bug_when>2013-08-15 19:08:36 +0000</bug_when>
    <thetext>Thank you Mathias.  I patched and rebuilt kde4libs and it fixed the problem for me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1390186</commentid>
    <comment_count>19</comment_count>
    <who name="Mathias Tillman">master.homer</who>
    <bug_when>2013-08-16 09:47:13 +0000</bug_when>
    <thetext>@Mathias Dietrich I posted it to the review board a week or so ago, but it has yet to be submitted, and they haven&apos;t replied to review request.

@l12436@yahoo.com.tw The patch applies to kbuildsycoca4, which is part of kdelibs. So building that should be fine.

@lnxusr@westlot.net That is good to hear, it&apos;s a very annoying problem so I hope it gets submitted soon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1390192</commentid>
    <comment_count>20</comment_count>
    <who name="TOM Harrison">l12436.tw</who>
    <bug_when>2013-08-16 10:02:56 +0000</bug_when>
    <thetext>@Mathias Tillman yeah, but i found vuild all of the code will crash the kde. only build kded could work normal.
my source is using apt-get source libkdecore5, and that version is now i installed, so i did not know how that happened.
anyway, now the patch will let the problem solved, i hope it could update to apt ASAP</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1390242</commentid>
    <comment_count>21</comment_count>
    <who name="">lnxusr</who>
    <bug_when>2013-08-16 14:23:06 +0000</bug_when>
    <thetext>@Mathias Tillman:  I spoke a bit too soon there.  Although patching, building and installing the complete kde4libs fixed this particular problem, it ended up completely hosing my system.

@l12436@yahoo.com.tw: Oh,  yes it does.  Things seem to work OK at first, but the whole system starts to fall apart rather quickly, and don&apos;t even think about rebooting.  I&apos;d not recommend to anyone to rebuild the complete kde4libs.

I&apos;m going to try to rebuild my second partition this weekend and try again with just kbuildsycoca4.  Thankfully, I keep two identical partitions on my system for just such stupidity by me.  I synch them up when I know the changes are stable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1390244</commentid>
    <comment_count>22</comment_count>
    <who name="Mathias Tillman">master.homer</who>
    <bug_when>2013-08-16 14:33:22 +0000</bug_when>
    <thetext>@lnxusr@westlot.net Did you try building kde4libs without this patch before and if so, did that work? I&apos;m pretty sure my patch shouldn&apos;t destroy a system, though I haven&apos;t tried to build and install the whole of kde4libs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1390246</commentid>
    <comment_count>23</comment_count>
    <who name="Eugene Shalygin">eugene.shalygin+bugzilla.kde</who>
    <bug_when>2013-08-16 14:45:54 +0000</bug_when>
    <thetext>I&apos;m running KDE 4.11 with this patch applied since 4.11 release. So far ther are no problems</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1390254</commentid>
    <comment_count>24</comment_count>
    <who name="">lnxusr</who>
    <bug_when>2013-08-16 14:58:05 +0000</bug_when>
    <thetext>@Mathias Tillman:  I&apos;m pretty sure my problems were due to my building and installing the complete kde4libs package, not your patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1390340</commentid>
    <comment_count>25</comment_count>
    <who name="TOM Harrison">l12436.tw</who>
    <bug_when>2013-08-17 00:48:35 +0000</bug_when>
    <thetext>(In reply to comment #24)
&gt; @Mathias Tillman:  I&apos;m pretty sure my problems were due to my building and
&gt; installing the complete kde4libs package, not your patch.

you just need to build kded, this patch just effect the kded.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1391109</commentid>
    <comment_count>26</comment_count>
    <who name="Jekyll Wu">adaptee</who>
    <bug_when>2013-08-20 04:06:48 +0000</bug_when>
    <thetext>*** Bug 323746 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1391112</commentid>
    <comment_count>27</comment_count>
    <who name="Jekyll Wu">adaptee</who>
    <bug_when>2013-08-20 04:37:03 +0000</bug_when>
    <thetext>*** Bug 323750 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1392687</commentid>
    <comment_count>28</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2013-08-26 13:51:40 +0000</bug_when>
    <thetext>Git commit 7f42bf2530090526d0150428fe58b87123317e2e by David Faure.
Committed on 26/08/2013 at 13:46.
Pushed by dfaure into branch &apos;KDE/4.11&apos;.

Fix reordering of apps for a derived mimetype.

This fixes a bug introduced by 871cccc8a88a60 that made it impossible to re-order
file type associations both in System settings and in the open with list. Hence
it contains a new way of detecting duplicate (inherited) mimetype entries, that
the original was supposed to fix.

Unittest is in kde-runtime, commit 967979f (if I can commit it fast enough ;)

Patch by Mathias Tillman.
REVIEW: 111951
FIXED-IN: 4.11.1

M  +36   -9    kdecore/services/kservice.cpp
M  +1    -1    kded/kbuildservicefactory.cpp
M  +0    -25   kded/kmimeassociations.cpp
M  +0    -1    kded/kmimeassociations.h

http://commits.kde.org/kdelibs/7f42bf2530090526d0150428fe58b87123317e2e</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1392881</commentid>
    <comment_count>29</comment_count>
    <who name="Jekyll Wu">adaptee</who>
    <bug_when>2013-08-27 08:37:26 +0000</bug_when>
    <thetext>*** Bug 324098 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1404187</commentid>
    <comment_count>30</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2013-10-18 07:41:10 +0000</bug_when>
    <thetext>Git commit f723e2e7d36b597c5262bf63dde380d89ec6bfcb by David Faure.
Committed on 18/10/2013 at 07:44.
Pushed by dfaure into branch &apos;KDE/4.11&apos;.

Fix association-with-derived-mimetype again.

871cccc8a88a made it impossible to re-order file type associations.
7f42bf253009 fixed that, but changed the value of KService::mimeTypes(), which
broke okular. This new fix works the same way, but only inside kbuildsycoca
when it processes the mimetypes. The value of KService::mimeTypes() is now
restored to be exactly what&apos;s in the desktop file.
FIXED-IN: 4.11.3

M  +9    -36   kdecore/services/kservice.cpp
M  +4    -3    kdecore/tests/kservicetest.cpp
M  +10   -1    kded/kbuildservicefactory.cpp

http://commits.kde.org/kdelibs/f723e2e7d36b597c5262bf63dde380d89ec6bfcb</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1404468</commentid>
    <comment_count>31</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2013-10-19 08:11:13 +0000</bug_when>
    <thetext>Git commit 8bfcace7efc0feea8899f70dfc15c3050c90ea99 by David Faure.
Committed on 19/10/2013 at 08:15.
Pushed by dfaure into branch &apos;KDE/4.11&apos;.

Improve fix for association with derived mimetypes (f723e2e7d36)

If a desktop file was mentionning two aliases, they would both get
removed, due to is() returning true for aliases as well.

M  +6    -1    kded/kbuildservicefactory.cpp
M  +10   -4    kded/tests/kmimeassociationstest.cpp

http://commits.kde.org/kdelibs/8bfcace7efc0feea8899f70dfc15c3050c90ea99</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1430712</commentid>
    <comment_count>32</comment_count>
    <who name="">ciprian.lica</who>
    <bug_when>2014-02-14 18:26:48 +0000</bug_when>
    <thetext>I still got this bug under KDE 4.11.5. Re-ordering to vlc works for *.mp4, *.avi, *.flv, but not for *.mkv. My &quot;Application Preference Order&quot; is: kaffeine, vlc, handbrake, mediainfo-gui. When I change it to vlc being first and close the Edit FIletype window, kaffeine remains the default player and, when the filetype window is opened again, the list order appears to have remained unchanged.

The weird thing is that if I change the list order to kaffeine, vlc, mediainfo-gui, handbrake, the change will remain effective. The same is valid for mediainfo-gui, kaffeine, vlc, handbrake.

But after this last permutation, when I tried to change it to vlc, mediainfo-gui, kaffeine, handbrake, I&apos;ve got instead kaffeine, vlc, mediainfo-gui, handbrake.

In the end, I&apos;ve removed kaffeine from the list, and vlc remained the first application.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1431444</commentid>
    <comment_count>33</comment_count>
    <who name="Rob Burness">rcburness</who>
    <bug_when>2014-02-19 00:30:57 +0000</bug_when>
    <thetext>(In reply to comment #32)
&gt; I still got this bug under KDE 4.11.5. Re-ordering to vlc works for *.mp4,
&gt; *.avi, *.flv, but not for *.mkv. My &quot;Application Preference Order&quot; is:
&gt; kaffeine, vlc, handbrake, mediainfo-gui. When I change it to vlc being first
&gt; and close the Edit FIletype window, kaffeine remains the default player and,
&gt; when the filetype window is opened again, the list order appears to have
&gt; remained unchanged.
&gt; 
&gt; The weird thing is that if I change the list order to kaffeine, vlc,
&gt; mediainfo-gui, handbrake, the change will remain effective. The same is
&gt; valid for mediainfo-gui, kaffeine, vlc, handbrake.
&gt; 
&gt; But after this last permutation, when I tried to change it to vlc,
&gt; mediainfo-gui, kaffeine, handbrake, I&apos;ve got instead kaffeine, vlc,
&gt; mediainfo-gui, handbrake.
&gt; 
&gt; In the end, I&apos;ve removed kaffeine from the list, and vlc remained the first
&gt; application.
If I remove Amarok from the list vlc can be moved to the default location.  If I add Amarok back in it wants to stay at the top and changes in position (move up/down) are ignored.
Running KDE 4.12.2.  I will simply keep Amarok off the list for .ogg files until this gets fixed.
Seems like it should be a simple fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1433305</commentid>
    <comment_count>34</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2014-03-01 09:21:04 +0000</bug_when>
    <thetext>Please investigate what happens in your ~/.local/share/applications/mimeapps.list file when making changes in the GUI, to find out if the problem is what gets written there, or the way it&apos;s interpreted.

It&apos;s hard for me to reproduce such bugs because it depends on what the .desktop files for the apps say (that&apos;s the initial ordering) and what the user&apos;s mimeapps.list file says, so overall quite system-dependent. But we can narrow down the bug if you can look into mimeapps.list and find out if it&apos;s right or wrong.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1454876</commentid>
    <comment_count>35</comment_count>
    <who name="Eric S">subscriber</who>
    <bug_when>2014-06-13 02:50:13 +0000</bug_when>
    <thetext>I&apos;m seeing this problem on 4.13.1.

It does seem to record my changes in ~/.local/share/applications/mimeapps.list

For example

application/xml=kde4-kate.desktop;juffed.desktop;chromium.desktop;kde4-rekonq.desktop;kde4-kfmclient_html.desktop;firefox.desktop;opera-browser.desktop;kde4-author.desktop;kde4-okularApplication_txt.desktop;kde4-calligrawords_ascii.desktop;

However rekonq keeps showing as the first mapping in system settings UI, and that is the app that will open if I click and xml file.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1456796</commentid>
    <comment_count>36</comment_count>
    <who name="Eric S">subscriber</who>
    <bug_when>2014-06-20 20:57:05 +0000</bug_when>
    <thetext>I can now confirm it is still a problem in 4.13.2

Whatever is going on is pecularly specific. For application/xml I have 

Rekonq
Kate
Juffed
etc. 

in my list. I encountered the problem because I wanted Kate to be the default app. I kept moving the order to Kate was at the top and Rekonq lower in the list. But it would never seem to &quot;take.&quot; Rekonq was always opened when I clicked on an xml file, and going back into the file association ui, it would stil show Rekonq at the top Looking at ~/.local/share/applications/mimeapps.list I would see that the change was indeed saved. The entry looks like:

application/xml=kde4-kate.desktop;juffed.desktop;kde4-rekonq.desktop;chromium.desktop;kde4-kfmclient_html.desktop;firefox.desktop;opera-browser.desktop;kde4-author.desktop;kde4-okularApplication_txt.desktop;kde4-calligrawords_ascii.desktop;

Deleting Rekonq from the list (using the UI) did however work. It stopped appearing in the UI and Kate was opened when I clcik an xml file. So I thought, well maybe it is reordering changes specifically that don&apos;t work.

So for kicks I swapped Kate and Juffed in the order. However this DID work. Juffed was opened when I click and xml file, and the order was shown when I went bck into the UI. 

So then I added Rekong again. And now AGAIN rekong always shows first in the UI and always opened when clicking an xml file. Reordering it the UI does not matter.

Can we please reopen this? Something is not right, even if very specific.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1456798</commentid>
    <comment_count>37</comment_count>
    <who name="Eric S">subscriber</who>
    <bug_when>2014-06-20 21:01:08 +0000</bug_when>
    <thetext>BTW I should add that this does not seems to be a case of Default Applications overriding the file associations. Rekonq is NOT my default web browser or default for anything. I rarely even use it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1460573</commentid>
    <comment_count>38</comment_count>
    <who name="Christoph Feck">cfeck</who>
    <bug_when>2014-07-10 22:45:13 +0000</bug_when>
    <thetext>Eric, can you please file a new bug with exact steps to reproduce on a freshly created user account? This one is most likely a different bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>81578</attachid>
            <date>2013-08-06 04:59:12 +0000</date>
            <delta_ts>2013-08-10 09:55:24 +0000</delta_ts>
            <desc>Should fix mimetypes not being saved properly</desc>
            <filename>patch.patch</filename>
            <type>text/plain</type>
            <size>2522</size>
            <attacher name="Mathias Tillman">master.homer</attacher>
            
              <data encoding="base64">ZGlmZiAtcnUzIGEva2RlZC9rYnVpbGRzZXJ2aWNlZmFjdG9yeS5jcHAgYi9rZGVkL2tidWlsZHNl
cnZpY2VmYWN0b3J5LmNwcAotLS0gYS9rZGVkL2tidWlsZHNlcnZpY2VmYWN0b3J5LmNwcAkyMDEz
LTA4LTA2IDA2OjI4OjU5LjAwMDAwMDAwMCArMDIwMAorKysgYi9rZGVkL2tidWlsZHNlcnZpY2Vm
YWN0b3J5LmNwcAkyMDEzLTA4LTA2IDA1OjE4OjUxLjAwMDAwMDAwMCArMDIwMApAQCAtMTgzLDcg
KzE4Myw3IEBACiAgICAgICAgICAgICAgICAgS1NlcnZpY2VPZmZlciBvZmZlcigqaXRzZXJ2KTsK
ICAgICAgICAgICAgICAgICBvZmZlci5zZXRNaW1lVHlwZUluaGVyaXRhbmNlTGV2ZWwobWltZVR5
cGVJbmhlcml0YW5jZUxldmVsKTsKICAgICAgICAgICAgICAgICAvL2tEZWJ1Zyg3MDIxKSA8PCAi
SU5IRVJJVEFOQ0U6IEFkZGluZyBzZXJ2aWNlIiA8PCAoKml0c2Vydikuc2VydmljZSgpLT5lbnRy
eVBhdGgoKSA8PCAidG8iIDw8IG1pbWVUeXBlTmFtZSA8PCAibWltZVR5cGVJbmhlcml0YW5jZUxl
dmVsP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Tw8IlJlbW92aW5nIGR1cGxp
Y2F0ZSBtaW1ldHlwZSI8PG1pbWUxPDxtaW1lMjw8ImZvciI8PGVudHJ5UGF0aDsKKyAgICAgICAg
ICAgICAgICAgICAgc3RfaXQxLnJlbW92ZSgpOworICAgICAgICAgICAgICAgICAgICBicmVhazsK
KyAgICAgICAgICAgICAgICB9CisgICAgICAgICAgICB9CisgICAgICAgIH0KKyAgICB9CisKICAg
ICAvLyBBc3NpZ24gdGhlICJpbml0aWFsIHByZWZlcmVuY2UiIHRvIGVhY2ggbWltZXR5cGUvc2Vy
dmljZXR5cGUKICAgICAvLyAoYW5kIHRvIHNldCBzdWNoIHByZWZlcmVuY2VzIGluIG1lbW9yeSBm
cm9tIGtidWlsZHN5Y29jYSkKICAgICBtX3NlcnZpY2VUeXBlcy5yZXNlcnZlKGxzdFNlcnZpY2VU
eXBlcy5zaXplKCkpOwo=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>81627</attachid>
            <date>2013-08-10 09:55:24 +0000</date>
            <delta_ts>2013-08-10 09:55:24 +0000</delta_ts>
            <desc>New version that should be slightly faster</desc>
            <filename>your-patch.patch</filename>
            <type>text/plain</type>
            <size>3628</size>
            <attacher name="Mathias Tillman">master.homer</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL2tkZWNvcmUvc2VydmljZXMva3NlcnZpY2UuY3BwIGIva2RlY29yZS9zZXJ2
aWNlcy9rc2VydmljZS5jcHAKaW5kZXggOGU4MTkyOWI5MTgwM2EzZWVkNTg2ZDlmYzE1Y2RkNzgx
NjViNmJjZS4uM2ExZjgxOGQ1ZjcxYjZmNDQxODc1NGE1NDVlMjE1NjA3NjQxMTA2YSAxMDA2NDQK
LS0tIGEva2RlY29yZS9zZXJ2aWNlcy9rc2VydmljZS5jcHAKKysrIGIva2RlY29yZS9zZXJ2aWNl
cy9rc2VydmljZS5jcHAKQEAgLTIyNywxNyArMjI3LDQ1IEBAIHZ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OGE2MDBjOGY4NTBhMDIwZDQ0YmZjNWY1ODU4Y2FhCisgICAgICAgIGJvb2wgc2hvdWxk
QWRkID0gdHJ1ZTsKKyAgICAgICAgaWYobV9zdHJUeXBlID09IFFMYXRpbjFTdHJpbmcoIkFwcGxp
Y2F0aW9uIikpIHsKKyAgICAgICAgICAgIEtNaW1lVHlwZTo6UHRyIG1pbWVUeXBlMSA9IEtNaW1l
VHlwZVJlcG9zaXRvcnk6OnNlbGYoKS0+ZmluZE1pbWVUeXBlQnlOYW1lKHN0KTsKKyAgICAgICAg
ICAgIGlmKG1pbWVUeXBlMSkgeworICAgICAgICAgICAgICAgIFFMaXN0SXRlcmF0b3I8UVN0cmlu
Zz4gc3RfaXQyKGxzdFNlcnZpY2VUeXBlcyk7CisgICAgICAgICAgICAgICAgd2hpbGUgKCBzdF9p
dDIuaGFzTmV4dCgpICkgeworICAgICAgICAgICAgICAgICAgICBjb25zdCBRU3RyaW5nIG1pbWUy
ID0gc3RfaXQyLm5leHQoKTsKKyAgICAgICAgICAgICAgICAgICAgLy8gRG9uJ3QgY29tcGFyZSB0
aGUgbWltZXR5cGUgd2l0aCBpdHNlbGYKKyAgICAgICAgICAgICAgICAgICAgaWYoc3QgPT0gbWlt
ZTIpCisgICAgICAgICAgICAgICAgICAgICAgICBjb250aW51ZTsKKworICAgICAgICAgICAgICAg
ICAgICAvLyBpcyBjaGVja3MgZm9yIGluaGVyaXRhbmNlIGFuZCBhbGlhc2VzLCBzbyB0aGlzIHNo
b3VsZCBzdWZmaWNlCisgICAgICAgICAgICAgICAgICAgIGlmKG1pbWVUeXBlMS0+aXMobWltZTIp
KSB7CisgICAgICAgICAgICAgICAgICAgICAgICBzaG91bGRBZGQgPSBmYWxzZTsKKyAgICAgICAg
ICAgICAgICAgICAgICAgIGJyZWFrOworICAgICAgICAgICAgICAgICAgICB9CisgICAgICAgICAg
ICAgICAgfQorICAgICAgICAgICAgfQorICAgICAgICB9CisKKyAgICAgICAgLy8gT25seSBhZG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taW1lVHlwZU5hbWUsIG9mZmVy
ICk7CiAgICAgICAgICAgICB9CiAgICAgICAgIH0KICAgICB9Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>