Bug 342974

Summary: File associations preference order not always respected
Product: [Unmaintained] kdelibs Reporter: Spraff <spraff>
Component: kdecoreAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: aspotashev, cfeck, christoph, mahen, mindboosternoori, smowtenshi
Priority: NOR    
Version First Reported In: frameworks   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Spraff 2015-01-17 16:47:02 UTC
Settings / File Associations entry for inode/directory contained, in the following order:

Dolphin
Gwenview
Filelight

With this configuration, opening the downloads directrory from firefox would open the directory in Filelight. Fixed by removing everything except Dolphin from the inode/directory list in File Associations panel, although this should not  have been necessary.

Reproducible: Always

Steps to Reproduce:
1. Install Kubuntu 14.10
2. Install Firefox, remove rekonq, install filelight
3. Download something in firefox and try to open downloads directory from firefox

Actual Results:  
Directory opens in filelight.

Expected Results:  
Directory should open in Dolphin.

Dolphin is above filelight in File Associations panel.
Comment 1 Christoph Feck 2015-01-17 23:05:12 UTC
Hm, Firefox is no KDE application, so I wonder how it should respect those settings.
Comment 2 Spraff 2015-01-18 12:06:21 UTC
In Qt there's QDesktopServices::openUrl and I imagine there's some GTK equivalent which will be interpreted by KDE to launch the appropriate application. Shouldn't the choice of child application happen outside the parent application?
Comment 3 Mahendra Tallur 2018-02-19 13:46:43 UTC
Hi ! I noticed a strange behavior regarding files associations, that only affect some GTK apps like Firefox / Thunderbird. I may file another bugreport if necessary.

How to reproduce :
1) install a clean KDE Neon distribution (or Manjaro KDE, same behavior). Plasma 5.12.1.
2) install wine
3) check the files associations for PNG and JPEG images in the KDE settings : gwenview is first, wineserver is second
4) try to open a PNG or JPG in Dolphin : Gwenview is indeed invoked
5) try to open a PNG or JPG in Firefox : wineserver is invoked !!

WORKAROUND

6) go back to the files associations preferences, move some items back and forth in the PNG / JPG lists ; save them
7) now, Gwenview will be invoked in Firefox, even though the list appears to be the same ! Gwenview is indeed displayed as "default" in the FF/TB preferences (while it was wineserver before)

SO : the KDE files associations list IS taken into account by Firefox / Thunderbird BUT it has to be modified / saved first for some unknown reasons.
Comment 4 Marcos Marado 2020-05-03 15:54:47 UTC
Confirmed as still happening on Kubuntu 19.10. Also confirmed that the workaround on comment #3 works.
Comment 5 Christoph Cullmann 2024-08-11 16:55:51 UTC
Please try it with a recent KF 6 based release, thanks.
Comment 6 Bug Janitor Service 2024-08-26 03:47:25 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2024-09-10 03:46:59 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.