LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   mime type associations for Office files (https://www.linuxquestions.org/questions/slackware-14/mime-type-associations-for-office-files-763870/)

shadowsnipes 10-22-2009 11:28 PM

mime type associations for Office files
 
I installed MS office 2003 via wine on Slackware 13. I need to know how to associate files with the right Office (msword, msexcel, msppt) program. I made launcher scripts that can launches office files from the CL, but the user on this computer will want to be able to just double click a file in dolphin and have the right office program come up.

For some reason all office files show up as x-ole-storage instead of application/msword or something similar. So, even if I tell Excel to associate with that file, it will do it for Word and PowerPoint files as well.

.ppt, .doc, and .xls extensions were configured via the KDE file associations panel, but this did not help. I played around with the raw files under ~/.local/share, but I did not find the solution.

The version of WINE is 1.1.24 (built from SBo SlackBuild).

I appreciate your help.

jedi_sith_fears 10-24-2009 11:01 AM

The generic MIME type handler application for KDE would be kfmclient
Code:

#kfmclient exec file/url

will launch the application associated with the MIME type of the given file or
URL
If the MIME type is known beforehand, it can be supplied as an additional
parameter
Code:

#kfmlclient exec file/url mimetype


shadowsnipes 10-25-2009 07:27 PM

jedi_sith_fears,

that is good information, but I do not see how that could be helpful in forcing dolphin to recognize the mimetypes I want it to for each of the different Office files.

Temporarily, as a workaround, I created a .desktop file that points to a script that basically runs "wine start". Since all of the Office files seem to currently be of mimetype x-ole-storage, I chose that script as a handler for that mimetype. This works for now since WINE knows what the correct mimetypes are, and using "wine start" will pull up the correct program based upon the mimetype known in WINE. Unfortunately, since Linux still sees all of the files as x-ole-storage, I cannot have different icons to represent them. This makes it a little more confusing for the user and is not ideal.


All times are GMT -5. The time now is 02:32 PM.