You are not logged in.

#1 2024-10-27 05:12:20

claudecat
Member
Registered: 2012-02-01
Posts: 25

[SOLVED] mc-wrapper.sh no longer works...

I love the mc app, use it frequently to simplify many console tasks. I noticed a while ago, first on Arch but elsewhere too if memory serves, that using the alias as per the wiki no longer works to land you in the proper folder upon exit. Nothing has changed (that I know of) on my end - nothing in logs to my knowledge, and the issue occurs whether in a terminal (konsole) or virtual console.

Not that big a deal, but it's a handy feature that I do use occasionally. I was hoping it would fix itself, but it's been several weeks now, maybe longer. Any ideas?

Last edited by claudecat (2024-10-27 11:48:36)


Why not enjoy a delightful Royal Crown cola?

Offline

#2 2024-10-27 07:43:54

seth
Member
Registered: 2012-09-03
Posts: 60,779

Re: [SOLVED] mc-wrapper.sh no longer works...

Worksforme™

type -a mc

You maybe want to edit /usr/lib/mc/mc-wrapper.sh and inject some debugging "echos" so you can see what happens there.

Offline

#3 2024-10-27 09:23:17

claudecat
Member
Registered: 2012-02-01
Posts: 25

Re: [SOLVED] mc-wrapper.sh no longer works...

seth wrote:

Worksforme™

type -a mc

You maybe want to edit /usr/lib/mc/mc-wrapper.sh and inject some debugging "echos" so you can see what happens there.

Thanks for the response! Here's what type -a mc tells us:

mc is aliased to `. /usr/lib/mc/mc-wrapper.sh'
mc is /usr/bin/mc

Seems fine to me, but I'm not well versed enough in bash/coding to even try debugging, though I suspect the issue lies therein. Something's changed, I'm just too dumb to know what or how to diagnose...


Why not enjoy a delightful Royal Crown cola?

Offline

#4 2024-10-27 11:03:20

claudecat
Member
Registered: 2012-02-01
Posts: 25

Re: [SOLVED] mc-wrapper.sh no longer works...

I've done a bit more research, and it appears that version 4.8.32 of mc itself may be the culprit. I have numerous distros installed (like to keep up with things...), and just checked several of the most current ones for mc behavior. The ones with 4.8.32 all have the issue described. Interestingly, Fedora still has 4.8.31.x. Tumbleweed has 4.8.32. Gentoo has 4.8.32-r1 but the problem persists. May have to wait for upstream...


Why not enjoy a delightful Royal Crown cola?

Offline

#5 2024-10-27 11:13:27

claudecat
Member
Registered: 2012-02-01
Posts: 25

Re: [SOLVED] mc-wrapper.sh no longer works...

A little more persistence and I can now mark this solved, in expectation of a fix in 4.8.33. This shows that they recently (4.8.32) changed the way temporary directories are handled, causing my issue.

Last edited by claudecat (2024-10-27 11:19:08)


Why not enjoy a delightful Royal Crown cola?

Offline

Board footer

Powered by FluxBB