Ticket #1554 (closed enhancement: wontfix)

Opened 10 years ago

Last modified 2 years ago

[HACK] A little fix so mc exits into it's current working directory

Reported by: ssuominen Owned by:
Priority: minor Milestone:
Component: mc-core Version: master
Keywords: Cc:
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

Gentoo's Midnight Commander 4.6.1 came with the following hack. I would be nice to have this implented as real feature as I really don't want to carry this around anymore (as gentoo's mc maintainer).

Instructions printed after package installation:

"Add the following line to your ~/.bashrc to"
"allow mc to chdir to its latest working dir at exit"

"# Midnight Commander chdir enhancement"
"if [ -f /usr/share/mc/mc.gentoo ]; then"
". /usr/share/mc/mc.gentoo"
"fi"

Attaching the mc.gentoo file for reference.

Attachments

mc.gentoo (322 bytes) - added by ssuominen 10 years ago.
mc.gentoo file that was installed to /usr/share/mc

Change History

Changed 10 years ago by ssuominen

mc.gentoo file that was installed to /usr/share/mc

comment:1 Changed 10 years ago by ssuominen

  • Status changed from new to assigned
  • Owner set to ssuominen

Nevermind, it's actually already a feature. Make the package to install a simple /etc/profile.d/ file:

ssuominen@unique ~/gentoo-x86/media-sound/kid3 $ cat /etc/profile.d/mc-chdir.sh
#!/bin/sh

if [ /usr/libexec/mc/mc.sh ]; then

. /usr/libexec/mc/mc.sh

fi

so user doesn't need to do anything by hand.

comment:2 Changed 10 years ago by ssuominen

  • Status changed from assigned to testing
  • Resolution set to worksforme

comment:3 Changed 10 years ago by angel_il

  • Status changed from testing to reopened
  • Resolution worksforme deleted

comment:4 Changed 7 years ago by andrew_b

  • Branch state set to no branch
  • Milestone changed from 4.7 to Future Releases

comment:5 Changed 2 years ago by andrew_b

  • Status changed from reopened to assigned
  • Owner ssuominen deleted

comment:6 Changed 2 years ago by zaytsev

  • Status changed from assigned to testing
  • Resolution set to wontfix
  • Milestone Future Releases deleted

We've been shipping shell wrappers in contrib for a long time for bash / ksh / zsh / csh. I think that it's the job of users and/or distro maintainers to activate those if they want to (i.e. as far as I know, Fedora people seem to be doing it by default?), and there isn't much we could/should do in addition to that on our side.

comment:7 Changed 2 years ago by andrew_b

  • Status changed from testing to closed
Note: See TracTickets for help on using tickets.