Noticed this morning that Midnight Commander doesn't open zip or pdf
files aaymore. It appears that a variable @EXTDIRHELPER@ is not being
set for some reason. The variable is used in the mc.ext.ini files.
Can anyone help ?
Upon further investigation, the problem seems restricted to PDF
files. MC will open ZIP and DEB files. If I run MC in an xterm I see this:
/tmp/mc-frank/mcextELJ902: 11: @EXTHELPERSDIR@/doc.sh: not found
The doc.sh file IS in /usr/lib/mc/ext.
Hi Frank,
looks ok here with MC on debian/stable.
Upon further investigation, the problem seems restricted to PDF
files. MC will open ZIP and DEB files. If I run MC in an xterm I see this:
Enter some *.pdf will open it using okular as pdf-viewer.
/tmp/mc-frank/mcextELJ902: 11: @EXTHELPERSDIR@/doc.sh: not found
Hhmm, looks like it is looking for doc.sh in /tmp ???
The doc.sh file IS in /usr/lib/mc/ext.
Please check also permissions of any MC-related files in your /home/. In the past I once ran into a problem, when starting MC as root after a "su -". Then the MC-file in my /home became root permissions and could not br read as normal user again. Just an idea.....
And you can also try, to purge MC and reinstall (aptitude purge mc && aptitude
install mc).
If done so, please recheck, if the issue is still there.
Hi Frank,
looks ok here with MC on debian/stable.
Upon further investigation, the problem seems restricted to PDF
files. MC will open ZIP and DEB files. If I run MC in an xterm I see this:
Enter some *.pdf will open it using okular as pdf-viewer.
/tmp/mc-frank/mcextELJ902: 11: @EXTHELPERSDIR@/doc.sh: not found
Hhmm, looks like it is looking for doc.sh in /tmp ???
The doc.sh file IS in /usr/lib/mc/ext.
Please check also permissions of any MC-related files in your /home/. In the past I once ran into a problem, when starting MC as root after a "su -". Then the MC-file in my /home became root permissions and could not br read as normal user again. Just an idea.....
And you can also try, to purge MC and reinstall (aptitude purge mc && aptitude
install mc).
If done so, please recheck, if the issue is still there.
Hope this helps.
Best
Hans
On 1/31/25 9:42 AM, Hans wrote:
Hi Frank,
looks ok here with MC on debian/stable.
Upon further investigation, the problem seems restricted to PDF
files. MC will open ZIP and DEB files. If I run MC in an xterm I see
this:
Enter some *.pdf will open it using okular as pdf-viewer.
/tmp/mc-frank/mcextELJ902: 11: @EXTHELPERSDIR@/doc.sh: not found
Hhmm, looks like it is looking for doc.sh in /tmp ???
Yes that is strange.
Checked them and all are OK
The doc.sh file IS in /usr/lib/mc/ext.
Please check also permissions of any MC-related files in your /home/.
In the
past I once ran into a problem, when starting MC as root after a "su
-". Then
the MC-file in my /home became root permissions and could not br read as
normal user again. Just an idea.....
And you can also try, to purge MC and reinstall (aptitude purge mc &&
aptitude
install mc).
If done so, please recheck, if the issue is still there.
Dis that earlier and nothing changed. I did notice one strange thing. I
had a look at the source files for MC and the EXTHELPERDIR is not in the mc.ext.ini
file whereas it is in mine. Could it be part of the compilation process ??
/tmp/mc-frank/mcextELJ902: 11: @EXTHELPERSDIR@/doc.sh: not found
It would help if someone were to show us the offending file, though I
don't quite understand why there's something that appears to be either
a shell script or a perl script in /tmp.
Hhmm, looks like it is looking for doc.sh in /tmp ???
No, the script is in /tmp.
The doc.sh file IS in /usr/lib/mc/ext.
Sounds like @EXTHELPERSDIR@ was supposed to be /usr/lib/mc then.
I do not understand the use of @EXTHELPERDIR@.
Traditionally, things that look like that (all caps identifiers with @
signs on both sides) are macros in a template file, which are supposed
to be replaced with values when installing the file in its final form.
So, presumably, this /tmp/mc-frank/mcextELJ902 script should have had
the @EXTHELPERSDIR@ replaced, either by the thing that created the
/tmp script, or by the package that INSTALLED the thing that created
the /tmp script.
Without being an mc user myself, and especially without being an
*unstable* mc user, I have no idea how many layers are involved here.
In any case, an unstable user should be able to diagnose this well
enough to fix it themselves, and then to file a bug report so the
package can be fixed before it migrates into trixie.
That's what unstable is for, you know. Debugging problems.
Surely the people running unstable understand this, and are not laboring under some kind of delusion like "unstable is a rolling release", or
"I don't have to know anything to run unstable".
/tmp/mc-frank/mcextELJ902: 11: @EXTHELPERSDIR@/doc.sh: not found
Hhmm, looks like it is looking for doc.sh in /tmp ???
The doc.sh file IS in /usr/lib/mc/ext.
I do not understand the use of @EXTHELPERDIR@.
I am running Trixie. Should have made that clear before.
What I can't understand is MC would open and browse ZIP files and DEB files but would not open PDF files.
At any rate the offending macro was in the mc.ext.ini files in the local ~/.config/mc but not in /etc/mc/mc.ext.ini file.
How it got there is a big question.
Fixed by copying the file in /etc/mc over the file in ~/.config/mc
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 01:18:03 |
| Calls: | 12,098 |
| Calls today: | 6 |
| Files: | 15,003 |
| Messages: | 6,517,863 |