Re: mc exit to current directory behavior
"Yury V. Zaytsev via mc-devel" <mc-devel-+hD5IHI5XseWCegYutOAJTiNl0CLU6MPYPYVAmT7z5s@public.gmane.org> Tue, 20 Jun 2023 19:08:11 +0200 (CEST)
| Newsgroups | gmane.comp.gnome.apps.mc.devel |
|---|---|
| Message-ID | <[email protected]> |
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 -- mc-devel mailing list mc-devel-+hD5IHI5XseWCegYutOAJTiNl0CLU6MPYPYVAmT7z5s@public.gmane.org https://lists.midnight-commander.org/mailman/listinfo/mc-devel