Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[METATICKET] Package-friendly configuration system (".d" support for rpm/deb based systems) #1677

Open
mc-butler opened this issue Oct 5, 2009 · 19 comments
Labels
area: core Issues not related to a specific subsystem prio: low Minor problem or easily worked around ver: 4.7.0-pre3 Reproducible in version 4.7.0-pre3

Comments

@mc-butler
Copy link

Important

This issue was migrated from Trac:

Origin https://midnight-commander.org/ticket/1677
Reporter vlisivka (@vlisivka)
Mentions gavenkoa@….com (@gavenkoa)

Currently, mc requires to edit .ini files to add new plugin to MC VFS. After upgrade, all changes to these files will be lost.

The same problem is related to syntax highlighting files.

To solve that problem, ".d" pattern should be supported by MC configuration system. See example of .d-pattern implemented in C in attachment.

Note

Original attachments:

@mc-butler
Copy link
Author

Changed by vlisivka (@vlisivka) on Oct 5, 2009 at 10:45 UTC

Example of .d-pattern support

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Dec 28, 2009 at 12:57 UTC

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Jan 27, 2010 at 13:27 UTC (comment 2)

  • Description edited
  • Blocked by set to #1909
  • Blocking #1909 deleted
  • Summary changed from Package-friendly configuration system (".d" support for rpm/deb based systems) to [METATICKET] Package-friendly configuration system (".d" support for rpm/deb based systems)

@mc-butler
Copy link
Author

Changed by stronny at celestia dot ru on Jan 29, 2010 at 9:13 UTC

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Apr 6, 2010 at 7:30 UTC

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Oct 29, 2011 at 16:59 UTC (comment 5)

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

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Apr 7, 2012 at 4:37 UTC (comment 6)

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Apr 7, 2012 at 4:38 UTC (comment 7)

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Apr 7, 2012 at 4:38 UTC (comment 8)

@mc-butler
Copy link
Author

Changed by gavenkoa (@gavenkoa) on Dec 21, 2014 at 15:28 UTC

(In #3030) Seems that include or source or import keyword help.

Another way - use /xxx.d/ directory and load files on name order (NN-xxxx patterns) see #1677. This look more promising.

But before do this it is necessary define read priority order or conflict resolution strategy (in documentation). See arguments in #3191.

@mc-butler
Copy link
Author

Changed by gavenkoa (@gavenkoa) on Dec 21, 2014 at 16:08 UTC (comment 10)

I gather related to /xxx.d/NN-xxxx issues. Don't miss priority issues when user want to use defined classes (#2773) or have conflicting entries (#3191).

Main reason to implement this enhancement is to give users ability to redefine system preferences. They are mostly fine but require little tweaks. With /xxx.d/NN-xxxx and symlink like:

$ ln -s /etc/mc/mc.ext ~/.config/mc/mc.ext.d/50-systemwide
$ ln -s /usr/share/mc/syntax/Syntax ~/.config/mc/syntax.d/50-systemwide
$ ln -s /etc/mc/mcedit.menu ~/.config/mc/mcedit/menu.d/50-systemwide
$ ln -s /etc/mc/mc.menu ~/.config/mc/50-systemwide

user automatically get config updates with MC update, no need to reintegrate tweaks.

I see /usr/lib/mc/ext.d/XXX.sh and /usr/lib/mc/extfs.d/XXX already present in MC distribution.

@mc-butler
Copy link
Author

Changed by gavenkoa (@gavenkoa) on Dec 21, 2014 at 16:10 UTC

@mc-butler
Copy link
Author

Changed by gavenkoa (@gavenkoa) on Dec 21, 2014 at 16:21 UTC (comment 12)

  • Cc set to gavenkoa@….com

@mc-butler
Copy link
Author

Changed by andrew_b (@aborodin) on Nov 28, 2016 at 7:58 UTC (comment 13)

@mc-butler
Copy link
Author

Changed by zaytsev (@zyv) on Feb 22, 2025 at 10:37 UTC

@mc-butler
Copy link
Author

Changed by zaytsev (@zyv) on Feb 22, 2025 at 11:20 UTC (comment 15)

@mc-butler
Copy link
Author

Changed by zaytsev (@zyv) on Feb 22, 2025 at 11:21 UTC

@mc-butler
Copy link
Author

Changed by zaytsev (@zyv) on Feb 22, 2025 at 11:41 UTC

@mc-butler
Copy link
Author

Changed by zaytsev (@zyv) on Feb 22, 2025 at 11:42 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: core Issues not related to a specific subsystem prio: low Minor problem or easily worked around ver: 4.7.0-pre3 Reproducible in version 4.7.0-pre3
Development

No branches or pull requests

1 participant