![]() Registered Member ![]()
|
I have had this very annoying problem for a couple of weeks now. If I double-click on an odt (or any open document type) file in Dolphin, it tries to open it in Firefox instead of LibreOffice.
If I right-click on the file, and go to "Open With", LibreOffice is at the top of the list, and the files also open correctly by double-clicking in Konqueror. I don't think this is a personal settings problem, because I get the same behaviour if I log in as root. I'm using Dolphin 2.0, KDE 4.8.0 and OpenSuse 11.4. Thanks in advance to anyone who can help with this. |
![]() Registered Member ![]()
|
Change the file association from:
System Settings -> File Associations
Manasij Mukherjee @ Arch Linux | gcc-4.9.2 | Plasma 5.2
|
![]() Administrator ![]()
|
Also, it may help to run: kbuildsycoca4 --noincremental - in case it is a badly cached value.
Also, check the "Preferred applications" in System Settings to ensure you haven't overridden things to use Firefox in certain cases.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
manasij and bcooksley, thanks for the suggestions. Unfortunately neither worked.
System Settings -> File Associations shows LibreOffice at the top of the list, same as "Open With ...", also in "Properties". kbuildsycoca4 --noincremental looks a little more promising - at least there are a heap of error messages. @bcooksley: I assume you mean "Default Applications" because I couldn't find "Preferred applications". I couldn't find anything strange in there. Here is the output from kbuildsycoca4 --noincremental:
Any ideas on how to proceed? Thanks again. |
![]() Administrator ![]()
|
The kbuildsycoca4 command output is not indicative of any issues - and can be ignored.
I suspect Dolphin is possibly classifying the ODT files as Zip files. If you right click on them, is Ark offered as a possible option for opening the file?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
@bcooksley: Aha! Now we're getting somewhere.
![]() Yes, Ark is listed. Also the "Extract" sub-menu is activate for .od* files. I couldn't find any settings in either Dolphin or System Settings that appear relevant though. How should I proceed? |
![]() Administrator ![]()
|
Can you please open Konsole, and run "kmimetypefinder <path to odt file>" and post the output here?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
@ bcooksley
Thanks again for your support. I tried kmimetypefinder on an odt and an ods file, since both are exhibiting the same behaviour. Here is the output: kmimetypefinder "TPF progress test (phonic unit3).odt" application/vnd.oasis.opendocument.text (accuracy 100) kmimetypefinder "Pretest Database.ods" application/vnd.oasis.opendocument.spreadsheet (accuracy 100) Does that help? |
![]() Administrator ![]()
|
Okay, now try running "keditfiletype application/vnd.oasis.opendocument.text" is OpenOffice at the top of that preferences list?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Actually LibreOffice Writer is at the top, rather than OpenOffice. Firefox is at the bottom of the list. The complete list is: I keep forgetting to ask - should I be running these commands as root or normal user, since, as mentioned in my first post, I get the same behaviour if I log in as root. |
![]() Administrator ![]()
|
For what it's worth, I can reproduce this with .svg files - they should open in Inkscape but instead open in Firefox. Weird. (Same problem with e.g. kde-open, so probably not a Dolphin issue.)
Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.
10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts |
![]() Administrator ![]()
|
If you remove Firefox from the list of associated applications for odt files, does that have any impact?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
@Hans: Nice to have company
![]() You're right - od* files also open in Firefox using kde-open. I just checked and if I drop an odt file into a folderview folder and open it from the desktop, it also opens in firefox. However, Konqueror opens them correctly. So what do Dolphin, kde-open and folderview folders have in common that Konqueror doesn't have? Or vice versa? @bcooksley: removing firefox from the list has no effect, so it seems that Dolphin (kde-open etc.) are ignoring this list for some reason. |
![]() Administrator ![]()
|
Interesting - as Dolphin and Konqueror both use the same underlying file viewer component.
Can you please enable all debug areas, then use kde-open to open the ODT file?
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Administrator ![]()
|
Well, Konqueror has the option to show the file embedded, so I guess the underlying code is slightly different?
I can try to investigate further when I get back later.
Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.
10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts |
Registered users: Bing [Bot], Google [Bot], lockheed