Re: mc Digest, Vol 87, Issue 12



That's good code to save and analyse for a tricky problem.
I still think someone knows how to <List which desktop,VT each of the
`mc`s is open on, so that you don't have to manually search>.

The <save & restore the latest pwd> is related to a similar problem that I
solved: <point this file, navigated to by mc, to another app. to use>,
by having <f2>-6 do:
<append This-dir, This-file to <someFile known to all apps> >.

So I've got:  /usr/shar~/mc.menu ==
6       Write pwd / currentFile = to /s4 for LEO =sys
        echo -n "EditTools.OpenUnix " >> /s4
        pwd >> /s4
        ls %f >> /s4
----------
My choice of "/s4" was not good.

== Chris Glur.


On 7/20/11, mc-request gnome org <mc-request gnome org> wrote:
Send mc mailing list submissions to
      mc gnome org

To subscribe or unsubscribe via the World Wide Web, visit
      http://mail.gnome.org/mailman/listinfo/mc
or, via email, send a message with subject or body 'help' to
      mc-request gnome org

You can reach the person managing the list at
      mc-owner gnome org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of mc digest..."


Today's Topics:

   1. Re: mc 4.7.5.2 always exits to its starting directory (Guus)


----------------------------------------------------------------------

Message: 1
Date: Thu, 14 Jul 2011 14:35:04 +0200
From: Guus <gbonnema xs4all nl>
To: mc gnome org
Subject: Re: mc 4.7.5.2 always exits to its starting directory
Message-ID: <4E1EE278 4000202 xs4all nl>
Content-Type: text/plain; charset=KOI8-R; format=flowed

On 07/14/2011 02:24 PM, Boyandin Konstantin wrote:
  Is this a 4.7.5.2 bug/feature, or a quirk of the mentioned build?
This is done on purpose.

Fedora packages source a wrapper script to start mc that remembers the
current directory before actually launching the program, so that after
you quit mc your pwd is restored.
I see.

OK, I'll run the binary mc directly. I suppose it's of no purpose
discussing why such changes are made, the rules of the list prevent me
from expressing my thoughts about this.

Thanks.
Sincerely,
Konstantin
_______________________________________________
mc mailing list
http://mail.gnome.org/mailman/listinfo/mc

You only have to disable the alias or alter it. the command "mc" is
aliased to a script that remembers the pwd.
For me it works properly i.e. it happily forgets the pwd, but for the
life of me, I don't remember how I did it.

[gbonnema athene etc]$ alias mc
alias mc='. /usr/libexec/mc/mc-wrapper.sh'
[gbonnema athene etc]$ cat /usr/libexec/mc/mc-wrapper.sh
MC_USER=`id | sed 's/[^(]*(//;s/).*//'`
MC_PWD_FILE="${TMPDIR-/tmp}/mc-$MC_USER/mc.pwd.$$"
/usr/bin/mc -P "$MC_PWD_FILE" "$@"

if test -r "$MC_PWD_FILE"; then
     MC_PWD="`cat "$MC_PWD_FILE"`"
     if test -n "$MC_PWD" && test -d "$MC_PWD"; then
         cd "$MC_PWD"
     fi
     unset MC_PWD
fi

P.S. why would the list rules forbid you to express your thoughts on
this? As long as you use neutral language and refrain from attacking
anyone personally, I don't see what you could do wrong by saying what
you think abou the subject.

Guus Bonnema.



------------------------------

_______________________________________________
mc mailing list
http://mail.gnome.org/mailman/listinfo/mc


End of mc Digest, Vol 87, Issue 12
**********************************




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]