feat: add option to copy instead of link on app level #2072
+93
−13
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request adds an application specific setting
symlink = false|true
to application config files.If this setting is set to
false
, then no files will be linked, but instead copied over.In this version, the default value, if the setting does not exist, is
true
to not break backwards compatibility.May close: #1854
May obsolete: #2008
Scope
This version allows for copying all files of one application instead of linking them.
It's not meant to work for individual files only, like link filea but do not link fileb. This would add another level of complexity, but also of complication inside the config files, either by adding a tag to each file to sync or have different sections like
configuration_files_to_link
andconfiguration_files_to_copy
and the same forxdg_configuration_files
.In order to keep it clean and simple, I chose the provided variant.
All submissions
Improving the Mackup codebase