Discrepancy between default file associations and program called by Fsearch #439
-
I am on Ubuntu 20.04 with KDE Plasma 5.18.8, Fsearch 0.3.alpha0. The output of However, if I search for that file in Fsearch and once found I double click on it, it is opened by VLC. So I wanted to ask: which file/mime-association configuration file is Fsearch using? That way I can modify it and fix this little problem. Cheers! PS: I don't consider this a "bug" because I'm on an originally Ubuntu/Gnome system on which I installed KDE. So I expect some glitches with file associations, and don't think it's Fsearch's fault. |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 18 replies
-
Hi, FSearch is using the standard freedesktop mime configuration: https://specifications.freedesktop.org/mime-apps-spec/mime-apps-spec-latest.html So your user-overrides for default applications will be stored in One quick way to change the default to audiompv is with: |
Beta Was this translation helpful? Give feedback.
-
Thank you. It seems my |
Beta Was this translation helpful? Give feedback.
-
By the way, no my |
Beta Was this translation helpful? Give feedback.
-
Sorry to reopen this thread. The strange behaviour of using a non-default app upon double-clicking is happening again, with most file types. One example is I did all checks above and can see that
Cheers! |
Beta Was this translation helpful? Give feedback.
-
Thank you again for looking into this!
Then I tried If it's important, let me add that I (still) use KDE/Plasma as desktop, but |
Beta Was this translation helpful? Give feedback.
-
Thx, that's weird, because everything looks and works fine here and FSearch runs the same code as |
Beta Was this translation helpful? Give feedback.
-
I strongly suspect that there's something wrong in my system config, not in Fsearch, and am looking into this. That's why I asked if Fsearch had relevant changes about this. |
Beta Was this translation helpful? Give feedback.
-
Update: it is opening in Gwenview now, upon double-click! Edit: also other file types for which I had similar problems are now behaving fine. I really wonder which of the commands above made the relevant change??? Edit 2: I removed some .desktop files that were corrupted – although unrelated to images. I can't think of anything else that may have led to this change now. Perhaps the system scans through all desktop files before choosing the right app, and corrupted desktop files break this? I don't really understand how these things work, unfortunately. |
Beta Was this translation helpful? Give feedback.
-
I was having the same problem with FSearch on KDE neon / KDE Plasma 5.27: When double-clicking results in FSearch, some files would not open in the default applications associated with their files. E.g., PDF files are normally opened in Okular, JPG files in Gwenview, but from within FSearch both would open in Vivaldi web browser. Per the above, I checked I then checked KDE Plasma's System Settings > File Associations and found that the Application Preference Order for PDF files had Okular at the top and Vivaldi at the bottom (!) of the list. For JPG files, Gwenview was at the top, Vivaldi near the bottom of the list. I have no idea what made FSearch open files in Vivaldi, out of all entries on these ordered lists. However, after manually deleting Vivaldi from the Application Preference Order for PDF and JPG files, I found that double-clicking them in FSearch resulted in the expected behaviour, i.e. opening in Okular and Gwenview, respectively. I'm leaving this here, perhaps others will find it helpful. |
Beta Was this translation helpful? Give feedback.
Hi,
FSearch is using the standard freedesktop mime configuration: https://specifications.freedesktop.org/mime-apps-spec/mime-apps-spec-latest.html
So your user-overrides for default applications will be stored in
~/.config/mimeapps.list
One quick way to change the default to audiompv is with:
gio mime audio/mp3 audiompv.desktop