[mc-devel] mc exit to current directory behavior
Yury V. Zaytsev
yury at shurup.com
Tue Jun 20 17:08:11 UTC 2023
On Tue, 20 Jun 2023, Dave Plater via mc-devel wrote:
> I originally thought this was a kde bug but apparently gnome has the
> same behaviour. We have come up with a workaround of placing "[ $(type
> -t mc) = "file" ] && . /etc/profile.d/mc.sh || true" in
> /etc/bash.bashrc.local but this is unsuitable for adding to the rpm
> package. Can somebody give me a simple method for a patch or a build
> flag that can override whatever the gui's are doing to mc's environment
> that causes this incorrect behaviour.
We ship shell-dependent wrapper start scripts with mc, and it's distro's
and/or user's job to make sure these wrappers are used to start mc instead
of mc binary, if the exiting to the last directory behavior is desired.
It's not possible for us to achieve this from within the binary in a
shell-independent way, hence the wrappers...
--
Sincerely yours,
Yury V. Zaytsev
More information about the mc-devel
mailing list