Created attachment 174797 [details] System setting for .xls files SUMMARY STEPS TO REPRODUCE 1. Type name of an .xls file on desktop, e.g. foo.xls 2. Click on "Recent files - foo.xls 3. Watch Calligra open the file instead of the specified LibreOffice Calc OBSERVED RESULT File opens in Calligra. EXPECTED RESULT File opens in LibreOffice, as configured in System Settings - Default Applications SOFTWARE/OS VERSIONS Linux/KDE Plasma: Kubuntu 24.10 KDE Plasma Version: 6.1.5 KDE Frameworks Version: 6.6.0 Qt Version: 6.6.2 ADDITIONAL INFORMATION
Can you also attach a screenshot that shows the ordering preferences for the "vnd.ms-excel" entry shown in your first screenshot? Also, please run `file --mime-type <path to the Excel file, or drag it to the terminal window>` in a terminal window, and paste the output here.
You should ask for kmimetypefinder (QMimeType/shared-mime-info based) rather than `file --mimetype`, which uses its own database.
Created attachment 176213 [details] Requested extra screenshot
(In reply to Nate Graham from comment #1) > Can you also attach a screenshot that shows the ordering preferences for the > "vnd.ms-excel" entry shown in your first screenshot? > > Also, please run `file --mime-type <path to the Excel file, or drag it to > the terminal window>` in a terminal window, and paste the output here. Added screenshot. $ file --mime-type testxlsx.xlsx testxlsx.xlsx: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet $ file --mime-type testxls.xls testxls.xls: application/vnd.ms-excel $ kmimetypefinder testxls.xls Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8. Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead. If this causes problems, reconfigure your locale. See the locale(1) manual for more information. application/vnd.ms-excel $ kmimetypefinder testxlsx.xlsx Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8. Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead. If this causes problems, reconfigure your locale. See the locale(1) manual for more information. application/vnd.openxmlformats-officedocument.spreadsheetml.sheet By the way: in the mean time I must have fixed something, behaviour is now as expected.
Thanks for the extra info, Menno and David. Everything looks sensible to me there. If you can't reproduce the issue anymore, then given the settings all look correct, unfortunately it's likely we won't be able to figure out what happened here. If it happens again though, feel free to re-open this bug report and we can take another look. Thanks!
(In reply to Nate Graham from comment #5) > Thanks for the extra info, Menno and David. Everything looks sensible to me > there. If you can't reproduce the issue anymore, then given the settings all > look correct, unfortunately it's likely we won't be able to figure out what > happened here. I think what happened was the upgrade from Kubuntu 24.04 to 24.10, so maybe I had better filed it with Ubuntu developers. Thanks for your replies.