Comment # 78 on bug 1203617 from Dirk Weber
(In reply to David Rankin from comment #76)
> I can confirm on TW, that mc does not exit to the current directory any
> longer when sourcing mc-wrapper.sh as the mc startup. Instead, mc reverts
> back to exiting to the start directory regardless of the current directory.
> The mc-wrapper.sh script has worked for -- ever. So something broke that
> setup.

The issue in current Tunbleweed (e.g. 20241006) with mc-4.8.32 is completely
different from this bug.

The issue in Tumbleweed is related to upstream
https://midnight-commander.org/ticket/4575

The wrapper script calls mc with a nonexistent directory, therefore mc can not
write the information of the current directory to the file and the function can
not get that information to cd to this directory. As a workaround the directory
can be created in order to restore the functionality.

$ pidof mc
6253

$ ps -Fp 6253
UID          PID    PPID  C    SZ   RSS PSR STIME TTY          TIME CMD
user      6253    6049  0  5135 13680   0 08:58 pts/2    00:00:00 /usr/bin/mc
-P /tmp/mc-user/mc.pwd.6049


$ ll /tmp/mc-user
ls: cannot access '/tmp/mc-user': No such file or directory


Workaround:
$ mkdir "/tmp/mc-$(whoami)" && chmod 0700 "/tmp/mc-$(whoami)"


You are receiving this mail because: