porphyry5 |
01-04-2013 11:17 AM |
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?
|