[Pkg-mc-devel] Bug#592208: Bug#592208: Bug#592208: mc: Can't open files for edit (F4) with space in filenames

Yury V. Zaytsev yury at shurup.com
Tue Aug 10 11:36:07 UTC 2010


Hi!

On Tue, 2010-08-10 at 13:29 +0200, Michelle Konzack wrote:
> Am 2010-08-09 17:58:17, schrieb Yury V. Zaytsev:
> > It seems that I have found the reason. mc does not know that it should
> > launch mcedit when evoked as /usr/bin/editor.
> 
> Why does it not know?
> 
> The EXEC command in the Source should execute even a symlink.

Because it's the way it works:

http://svn.debian.org/wsvn/pkg-mc/trunk/debian/patches/debian/99_detect_alt_editor.patch

> However, since dist-upgrades over  two  versions  is  not  supported  by
> Debian, you could include a small code into  "mc.postinst"  which  check
> for old stuff laying around before it call "update-alternatives"...

Uhmmm?

I don't see what I can do in this regard. When mc is uninstalled, the
alternatives it provides are removed (and the alternatives are reset to
a best possible match). 

So I am not sure whether there is a way of checking that the alternative
for editor was previously manually set to mcedit-debian and force it to
become mcedit instead.

If this is indeed possible a patch would be welcome.
 
-- 
Sincerely yours,
Yury V. Zaytsev






More information about the Pkg-mc-devel mailing list