Bug 376679 - chaning mimeapps.list is not respected by folderview unless you restart Xorg
Summary: chaning mimeapps.list is not respected by folderview unless you restart Xorg
Status: RESOLVED WORKSFORME
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2017-02-19 16:39 UTC by Thomas Weissel
Modified: 2020-09-10 19:46 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Weissel 2017-02-19 16:39:05 UTC
i tried changing the fileassociation for odt from libreoffice to calligrawords and it is working everywhere except in the folder view widget.

even restarting plasmashell did not change this faulty behaviour

after i restart Xorg it also works in the folder view widget

i made sure that all tree locations /usr/share/applications/  .config/ and .local/share/applications/   had the same mimeapps.list file
Comment 1 Eike Hein 2017-02-20 09:53:18 UTC
Folder View just uses KRun.
Comment 2 Nate Graham 2018-08-22 20:46:52 UTC
Are you able to reproduce this issue with KDE Frameworks 5.49 and Plasma 5.13.x?
Comment 3 Andrew Crouthamel 2018-09-28 03:18:32 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Andrew Crouthamel 2018-10-29 02:11:06 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 5 Patrick Silva 2019-03-25 16:24:31 UTC
This bug persists.

Steps to reproduce (apps used: okular 1.6.3 and libreoffice writer 6.2.2):
1. have an odt file in your home
2. add "folder view" widget to your desktop
3. open the settings of the "folder view" widget, set your home as location, apply the setting
4. open dolphin, select your odt file located in home, press alt+enter to open its properties
5. click "File type options" button
6. move another app to top of the prefered apps list and apply the setting
7. double click your odf file in Dolphin: as expected, odt file opens with the app moved to top of the prefered apps list in the previous step
8. now open the same odt file via "folder view" widget added to your desktop
Result: odf file opens with another app, not the app moved to top of the prefered apps list in the step 6

Operating System: Arch Linux 
KDE Plasma Version: 5.15.3
KDE Frameworks Version: 5.56.0
Qt Version: 5.12.2
Comment 6 Ahmad Samir 2020-05-28 16:15:04 UTC
If you can still see this issue please post the output of:
ls -l ~/.cache/ksycoca*

You might have different apps using different locales, which means two different ksycoca database files in ~/.cache, one for each lang/locale.

c.f. https://cgit.kde.org/kservice.git/commit/?id=f1bdf30501b87cb79806362a68c7515ba755275a
Comment 7 Patrick Silva 2020-05-28 16:44:23 UTC
I can't reproduce following the steps from comment 5 switching the file association between Libre Office 6.4.4.2 from flathub and Okular 1.10.70.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.19.80
KDE Frameworks Version: 5.71.0
Qt Version: 5.14.2
Comment 8 Bug Janitor Service 2020-06-14 04:33:10 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 9 Bug Janitor Service 2020-06-29 04:33:11 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 10 David Faure 2020-09-10 19:46:01 UTC
Could it be that you actually tested making multiple changes and using the Apply button more than once? I just fixed a bug where the second click on Apply wouldn't save the apps list.
Comment 11 David Faure 2020-09-10 19:46:11 UTC
Git commit 831128c134f5e1cf8247d4ffde1d8e77aca10085 by David Faure.
Committed on 10/09/2020 at 19:42.
Pushed by dfaure into branch 'Plasma/5.19'.

Fix filetype editor not saving the apps list on the second Apply

M  +6    -0    keditfiletype/mimetypedata.cpp
M  +3    -0    keditfiletype/tests/filetypestest.cpp

https://invent.kde.org/plasma/kde-cli-tools/commit/831128c134f5e1cf8247d4ffde1d8e77aca10085