Bug 360189 - file type application preference order can't override ~/.config/mimeapps.list
Summary: file type application preference order can't override ~/.config/mimeapps.list
Status: RESOLVED DUPLICATE of bug 354179
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_filetypes (show other bugs)
Version: 5.5.4
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-07 07:47 UTC by Oded Arbel
Modified: 2016-06-02 18:38 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Oded Arbel 2016-03-07 07:47:16 UTC
When a mime type has associated launchers in ~/.config/mimeapps.list , that file takes precedence on choosing the application preference order and that order can't be manipulated by the file types configuration dialog - if you try to remove or change the order of applications listed in the ~/.config/mimeapps.list file, when you hit "OK" that change is *not saved* and when you hit "Apply" you can actually see the order reset to what the ~/.config/mimeapps.list file specifies.

The main problem with this is that other desktop environments (notably GNOME) writes their file associations to the config and then under KDE there is no way to change it.

Reproducible: Always

Steps to Reproduce:
1. Start nautilus, right click some JPEG file, choose "Properies" and under the "Open With" tab choose some program as the default (for example Gimp)
2. run `kbuildsycoca5`
3. Start dolhin, right click some JPEG file, choose "Properties" and click "File Type Options".
4. Choose a non-default program from the "Application Preference Order" (for example Gwenview) and use the "Move Up" button to make it the default (first in the list).
5. Click "Apply"

Actual Results:  
The order is reset with the program chosen by Nautilus to be on top

Expected Results:  
The order should remain as the user have set it

My current workaround is to edit ~/.config/mimeapps.list and under the `[Added Applications]` remove any association that I want to override, then run `kbuildsycoca5`. After doing that the kcm_filetypes dialog can edit the file types.

But any other application that uses xdg-mime to change the file association will cause a regression in the file type association.
Comment 1 Wolfgang Bauer 2016-06-02 18:38:03 UTC
I'd say this is a duplicate of bug#354179...

This is fixed in 5.6.0, keditfiletype5 now writes the changes to ~/.config/mimeapps.list.

*** This bug has been marked as a duplicate of bug 354179 ***