LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-30-2010, 05:30 PM   #1
thach.trung.ngoc
Member
 
Registered: Mar 2009
Distribution: Slackware-Current
Posts: 46

Rep: Reputation: 0
Midnight Commander Mimetype


Hi All

I am having a small issue with mc (midnight commander). I dont know how to select a specific application to open specific file type (e.g. I would like to use swriter to open .doc file. When I pressed "enter" on document file, nothing happened).

If anyone could help me out with this issue. Thanks
 
Old 11-30-2010, 05:33 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,679

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
Moved: This thread is more suitable in Linux-Software and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 11-30-2010, 05:34 PM   #3
P42
LQ Newbie
 
Registered: Aug 2010
Location: Germany
Distribution: Slackware
Posts: 16

Rep: Reputation: 0
maybe mc takes the associations from a superior unit like the desktop environment?
 
Old 12-02-2010, 06:49 AM   #4
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware (personalized Window Maker), Mint (customized MATE)
Posts: 1,309

Rep: Reputation: 234Reputation: 234Reputation: 234
Midnight Commander stores its settings in /etc/mc/mc.ext file (newer versions) or in /usr/share/mc/mc.ext file (older ones). Sample entry looks like:

Code:
# Microsoft Word Document
regex/\.([Dd][oO][cCtT]|[Ww][rR][iI])$
        Open=(soffice %f >/dev/null 2>&1 &)
        View=%view{ascii} antiword -t %f || catdoc -d8859-2 %f || word2x -f text %f - || strings %f
type/^Microsoft\ Word
        Open=(soffice %f >/dev/null 2>&1 &)
        View=%view{ascii} antiword -t %f || catdoc -d8859-2 %f || word2x -f text %f - || strings %f
In the above configuration you need soffice program to open Microsoft DOC, DOT or WRI files (soffice program is a part of OpenOffice.org package). To display the contents of one of these files using Midnight Commander F3 keyboard shortcut you need one of the following programs: antiword, catdoc or word2x.
 
1 members found this post helpful.
Old 12-03-2010, 04:13 AM   #5
thach.trung.ngoc
Member
 
Registered: Mar 2009
Distribution: Slackware-Current
Posts: 46

Original Poster
Rep: Reputation: 0
Thanks very much for your help
 
  


Reply



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
Midnight Commander 4.6.2 guanx Slackware 8 02-07-2009 03:53 AM
midnight commander prevoo DamnSmallLinux 6 09-19-2004 04:26 PM
midnight commander enigma1 Linux - Software 6 12-10-2003 02:47 PM
Midnight Commander XPediTioN Slackware 2 07-12-2003 11:45 PM
Where's mc (Midnight Commander) Shadow Of Death Linux - Software 7 01-09-2003 07:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:03 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration