[SOLVED] Mime type choosing wrong application, latest KDE 4.8
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781
Rep:
Mime type choosing wrong application, latest KDE 4.8
Finally got the latest updates and KDE 4.8 from Eric's courageous efforts (Thanks Eric) but having a problem with mime type/file associations. But only with LibreOffice spreadsheets with the .ods file extention.
Specifically, clicking on a spreadsheet with this extension launches FF instead of LO. Googled and tries all the advice I could find vis-a-vis deleting kde cache files etc both locally and in /var/tmp/kdecach-me.
Done the usual rename of /home/me/.kde, logged out and back in thus completely recreating kde's hidden directory to cure another problem, so I suspect something else is wrong.
Right clicking shows the prompt in the drop down menu to open with localc, and checking through system settings, the only entry for file associations for types ending with .ods is LibreOffice calc, but when just clicking on the file (either from the desktop or within dolphin) tries to open the file with FF.
Saving the file as (gasp!, shock, horror) a Microsoft .xls file allows LO to open it as one would expect.
I know it's not a big thing but it's really annoying.
I am running slackware64-current, enhanced with my KDE 4.8.0 and my Libreoffice 3.4.5 package.
I have a .ODS file somewhere below my homedirectory. When I open this directory in Dolphin and hover the mouse over the .ODS file, the status bar of Dolphin says "OpenDocument Spreadsheet". When I click the file, LibreOffice starts and the file opens in localc.
What version of LibreOffice and which kind of package do you have installed? The official binaries, or my package?
Currently using LibreOffice 3.3.1 compiled by your good self. Will try the upgrade to 3.4.5 and let you know the result.
Cheers
Vic
I started adding the mime type definition files to my LibreOffice packages with the start of the 3.4 series... I guess there's at least part of the cause of your issue.
Distribution: Slackware 14 (Server),OpenSuse 13.2 (Laptop & Desktop),, OpenSuse 13.2 on the wifes lappy
Posts: 781
Original Poster
Rep:
Ok, I have upgraded to 3.4.5, and there is definitely some improvement. Now at least from within Dolphin, clicking on the file now launches LO calc, but strangely enough, creating a link to the desktop and clicking on it from there causes the previous behaviour of opening with FF.
One thing I forgot to mention is that previously, if I used Konqueror as a file manager there was no issue, just with Dolphin and desktop links. So the current state of play is that only files clicked on via the desktop, (just tried with both a link, and a directly stored file on the desktop), does the FF issue happen.
I cannot reproduce this either.
I opened Dolphin, and dragged the .ODS file to the desktop, thereby creating a "shortcut" to the file in my homedirectory.
When I click that shortcut, LibreOffice Calc opens as expected and shows me the content of the spreadsheet.
Upgrading to 3.4.5 solved the Dolphin issue for me too, but as with vdemuth the odts and odss are opened in firefox if launched from the desktop. Actually libreoffice does get launched as well, but the document only opens in firefox.
BTW, I also tested 3.5 from slackbuilds.org and it exhibits the same behavior.
Actually I had not installed libreoffice-mozplugins at all. So I did install it and it did not change the behavior. (Well, it did slightly, because for the ods, but not the odt, when it started to open in firefox I got a dialog box saying I was trying to open a binary file and asking if I wanted to save it.) Subsequently deleting the package did not change the behavior (except the Save dialog box went away).
Have you tried selecting a .odt or .ods file in Dolphin, right clicking and selecting Open With -> Other... and choosing the LibreOffice option as well as selecting the remember this association check box?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.