[mc-devel] mc exit to current directory behavior

Andrey Smirnov allter at gmail.com
Wed Jun 21 10:49:30 UTC 2023


On 20.06.2023 18:29, Dave Plater via mc-devel wrote:
> Hi, openSUSE's recent stable release upgrade from kde plasma5 gui from 
> v24.4 to v27.4 has caused mc to exit into the directory it was started 
> from instead of into mc's current directory. This is being discussed in:
>
> https://bugzilla.suse.com/show_bug.cgi?id=1203617

Did you try adding the following line that sources a wrapper when you invoke mc to your .bashrc or other place where it can be sourced? This bugzilla issue contains different ways of how to do this.

alias mc='source /usr/share/mc/mc-wrapper.sh'


Bugzilla discussion hints that something is changed in a way the 
/etc/profile.d scripts are sourced. Check if the shell from which you 
invoke mc is actually bash (not ash or something).

The simplest way of checking if you have the wrapper set up is to issue 
command "alias" from the terminal emulator from which you try to invoke 
mc. Its output should have the line mentioned above.

Best regards,

  Andrey Smirnov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.midnight-commander.org/pipermail/mc-devel/attachments/20230621/a6547119/attachment.html>


More information about the mc-devel mailing list