Re: Differentiate Open
- From: Pavel Roskin <proski gnu org>
- To: Michal Svec <rebel atrey karlin mff cuni cz>
- Cc: mc-devel gnome org
- Subject: Re: Differentiate Open
- Date: Thu, 11 Jul 2002 16:08:36 -0400 (EDT)
Hi, Michal!
> In the current mc.ext you could often find something like this:
>   Open=if [ "$DISPLAY" = "" ]; then dvisvga %f; else (xdvi %f &); fi
> 
> It's long and hungus.
It also doesn't work on remote VFS (such as fish, ftpfs) under X.  Also 
xdvi will exit when MC terminates.
> Thus I propose to split Open into two parts:
>   Open=dvisvga %f
>   XOpen=xdvi %f
> 
> Advantages:
> - shorter and cleaner notation
> - backward compatible
> - faster execution
> - patch is small
- mc will be able (hopefully) to set up a separate process group in the
child and do whatever else is needed to prevent X programs from exiting
when mc exits.
Very good idea.  Thank you.  I think XView and XEdit would be useful too.  
I'm a bit hesitant about applying it now, but if it fixes (well, works 
around) the problem with the second %f not being expanded by VFS and 
doesn't introduce any new bugs, it will be applied.
-- 
Regards,
Pavel Roskin
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]