Ticket #2772 (new enhancement)

Opened 8 years ago

Last modified 5 years ago

Suggestion to load /etc/mc/mc.ext after ~/.config/mc/mc.ext anyway or add keyword to mc.ext for this purpose.

Reported by: gavenkoa Owned by:
Priority: major Milestone: Future Releases
Component: mc-core Version: master
Keywords: hg.ext bindings Cc: gavenkoa@…
Blocked By: #1677, #3191 Blocking:
Branch state: no branch Votes for changeset:

Description

If I create ~/.config/mc/mc.ext then /etc/mc/mc.ext no longer parsed.

I want to track my personal customization to mc.ext but also I want stay in touch with upstream version of mc.ext.

To use upstream version of mc.ext with my small but essential for me customizations I need merge these two files:

  $ cat $skelproj/.config/mc/mc.ext /etc/mc/mc.ext > ~/.config/mc/mc.ext

Pretty easy but how about keyword to load system wide configs? So anyone can just copy mc.ext to proper place?

Change History

comment:1 Changed 8 years ago by gavenkoa

  • Summary changed from Suggestion to load /etc/mc/mc.ext before ~/.config/mc/mc.ext anyway or add keyword to mc.ext for this purpose. to Suggestion to load /etc/mc/mc.ext after ~/.config/mc/mc.ext anyway or add keyword to mc.ext for this purpose.

comment:2 Changed 8 years ago by andrew_b

  • Blocking 1677 added

comment:3 Changed 5 years ago by gavenkoa

  • Blocking 1677 removed
  • Blocked By 1677, 3191 added

Today I fight with troubles on F3 on zip archive:

gzip: stdin has more than one entry--rest ignored
Can not open "..." in parse mode. No such file or directory.

After debugging I clean my ~/.config/mc/mc.ext by:

$ cat $skelproj/.config/mc/mc.ext /etc/mc/mc.ext > ~/.config/mc/mc.ext

Seems that I update MC and old stuff conflict with new helper scripts.

I think that ~/.config/mc/mc.ext.d solve this issue:

$ ln -s /etc/mc/mc.ext ~/.config/mc/mc.ext.d/50-systemwide
$ ln -s $skelproj/.config/mc/mc.ext ~/.config/mc/mc.ext.d/60-userdefined

But another issue is conflict resolution or priority. Until it formally defined /xxx.d/NN-xxxx will not work. See #3191

comment:4 Changed 5 years ago by gavenkoa

  • Cc gavenkoa@… added
Note: See TracTickets for help on using tickets.