LinuxQuestions.org
Register a domain and help support LQ
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 01-04-2013, 11:17 AM   #1
porphyry5
Member
 
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch
Posts: 421

Rep: Reputation: 18
midnight commander problem with slackware 14


Using mc with previous versions of slackware, if I pressed Enter on a selected .pdf, then xpdf would be used to view it, or on a .mp3 then xmms would play it. But not in 14; now when I press Enter for such selected file types, always firefox tries to open them.

I checked mc's configuration files, and everything seems normal. So, for .pdf files ~/.config/mc/mc.ext contains
Code:
# PDF
type/^PDF
        Open=/usr/libexec/mc/ext.d/doc.sh open pdf
        View=%view{ascii} /usr/libexec/mc/ext.d/doc.sh view pdf
and /usr/libexec/mc/ext.d/doc.sh contains
Code:
do_open_action() {
    filetype=$1

    case "${filetype}" in
    ps)
        (gv "${MC_EXT_FILENAME}" &)
        ;;
    pdf)
        (xpdf "${MC_EXT_FILENAME}" &)
        #(acroread "${MC_EXT_FILENAME}" &)
        #(ghostview "${MC_EXT_FILENAME}" &)
        ;;
So presumably one would expect xpdf to display pdf files in mc.

Does anyone have any suggestions as to how firefox might have highjacked this process?
 
Old 01-04-2013, 01:55 PM   #2
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,851

Rep: Reputation: 432Reputation: 432Reputation: 432Reputation: 432Reputation: 432
Have you looked at mime-types? I'm running Slack-14, 32 bit and with XFCE desktop. I changed the apps that open from mc by changing the mine-type with the mime-type editor in the settings manager.

Hope this helps.

Last edited by camorri; 01-04-2013 at 01:56 PM. Reason: corrected spelling.
 
1 members found this post helpful.
Old 01-04-2013, 02:46 PM   #3
porphyry5
Member
 
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch
Posts: 421

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by camorri View Post
Have you looked at mime-types? I'm running Slack-14, 32 bit and with XFCE desktop. I changed the apps that open from mc by changing the mine-type with the mime-type editor in the settings manager.

Hope this helps.
Thanks anyway, but I would prefer to find out how and why firefox interferes with the existing method, rather than resort to a work-around if its not absolutely necessary.
 
Old 01-04-2013, 08:38 PM   #4
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,014

Rep: Reputation: 146Reputation: 146
Quote:
Originally Posted by porphyry5 View Post
Thanks anyway, but I would prefer to find out how and why firefox interferes with the existing method, rather than resort to a work-around if its not absolutely necessary.
That is not a workaround. According to "/usr/libexec/mc/ext.d/doc.sh" etc. mc first tries xdg-open.

See ChangeLog of mc 4.8.4 or https://www.midnight-commander.org/ticket/2118
 
1 members found this post helpful.
Old 01-05-2013, 11:37 AM   #5
porphyry5
Member
 
Registered: Jul 2010
Location: oregon usa
Distribution: Slackware 14.1, Arch
Posts: 421

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by guanx View Post
That is not a workaround. According to "/usr/libexec/mc/ext.d/doc.sh" etc. mc first tries xdg-open.

See ChangeLog of mc 4.8.4 or https://www.midnight-commander.org/ticket/2118
My apologies to you both, camorri and quanx, for misunderstanding your information. All is well, and thank you for your help.
 
  


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
Midnight Commander F-keys problem. c4c711 Linux - Software 3 05-21-2012 11:56 AM
a problem with installing Midnight Commander(mc) alnmostafa Linux - Software 7 11-03-2006 12:41 PM
mouse problem in midnight commander 4.6.1.67 Sammael Linux - Software 0 06-27-2006 07:40 PM
Problem with Midnight Commander thrix Linux - Software 3 01-21-2004 03:20 PM
Problem installing Midnight Commander esage Mandriva 6 09-07-2003 04:33 PM


All times are GMT -5. The time now is 02:41 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