As in subject. When I change the order of applications and press Apply there are forced some entries on specified positions. Below please find steps to reproduce: For example I would like to change applications order showing after click on ui file. 1. RMB on file mydialog.ui and open Properties 2. Press button "File Type Options" (it shows File type editor) 3. Change order in "Application Preference Order" like this: KUIViewer Qt Designer Qt Creator KWrite Kate Diffuse Merge Tool and others 4. Press Apply button Actual result: The order have been changed like this: KUIViewer KWrite Qt Creator Kate Qt Designer Diffuse Merge Tool Expected result: The order of applications should not be changed. If some applications are necessary to be here then let them be put on end of list and should not break the order set by user.
Created attachment 152458 [details] Videocast of Firefox insisting on opening xml files I can quite easilly confirm this on Kubuntu 22.04 (with backports, so Plasma 5.25). It does not reliably get triggered for each association, but I managed to get it for mime type "text/x-c++src" and also for xml - Firefox is especially persistent (see the video). It can be workaround by removing the applications that are misbehaving - but they get added anyway, so that only works for changing the default application, not their order on further places.
There used to be this bug: https://bugs.kde.org/show_bug.cgi?id=291177 but I am not sure if it and the solution to it is in any way relevant.
*** Bug 493738 has been marked as a duplicate of this bug. ***
*** Bug 497391 has been marked as a duplicate of this bug. ***
Added two more recent bugs as duplicates to this, as they all described inconsistent but incorrect applying of the Application Preference Order in the File Type Editor. It might be worth noting here, I could not personally reproduce the bug when the preference order was among a small (<=5) number of applications - the video examples that folks have attached appear to show longer lists being affected, so perhaps there's something triggered when there is a larger number of entries there?