LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 10-23-2009, 12:28 AM   #1
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,441

Rep: Reputation: 70
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.
 
Old 10-24-2009, 12:01 PM   #2
jedi_sith_fears
Member
 
Registered: Jan 2008
Location: Kolkata
Distribution: Slackware(64)-current, Fedora 14, FreeBSD
Posts: 136
Blog Entries: 1

Rep: Reputation: 29
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

 
Old 10-25-2009, 08:27 PM   #3
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,441

Original Poster
Rep: Reputation: 70
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Warning ___ specifies undefined mime type/service type mbvpixies78 Linux - Software 0 12-29-2007 11:25 PM
How to change mime associations in firefox gkiagia Linux - Desktop 11 12-07-2006 08:33 AM
Editing File Type Associations in Bluecurve? KryspyG Red Hat 0 04-06-2004 09:23 PM
how do I change mime type? brian_eye Linux - Newbie 2 06-10-2002 10:14 AM
Mime type settings saravanan1979 Linux - Newbie 0 04-15-2002 06:53 AM


All times are GMT -5. The time now is 11:10 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration