mackup icon indicating copy to clipboard operation
mackup copied to clipboard

Mackup app config files should be version independent?

Open captnswing opened this issue 5 years ago • 4 comments

I notice two different paradigms for the config files currently in the mackup/applications folder. Sometimes several config files exist for different app versions. E.g.

Sometimes, one mackup app config file supports several versions of the app simultaneously. E.g.

...I think it would be great with the latter approach (one app config file for several versions).

This could be easier if the ini files supported wildcards in them, e.g.

Library/Preferences/com.sublimetext.*.plist could catch several versions of Sublime Text, and Library/Application Support/IntelliJIdea* would catch the App Support files for several IntelliJ versions

captnswing avatar Aug 26 '19 15:08 captnswing

thinking about how this could be implemented, e.g. by introducing a deprecated subdirectory in the applications folder. Then e.g. moving sublime-text-3.cfg and sublime-text-2.cfg to the deprecated directory and introducing an applications/sublime-text.cfg in their place.

The mackup program could be changed to emit warnings and migration instructions when config files in the deprecated folder are found in a mackup.cfg

captnswing avatar Sep 02 '19 14:09 captnswing

Yeah, the multiple versions is an issue. On homebrew this is handled with a version stanza, e.g. python and python@3.

Adding optional versioning for each application is the way to go longterm. No need to have different folders, we could add versioning the the files listed in each application, e.g.:

[v1]
file1

[v2]
file2

(not suggesting it, just an example).

This would also solve the upgrade problem, where upgrading mackup ditches the old state of applications supported before, which makes it impossible to upgrade cleanly as the new version can't know about old files with the current system.

lra avatar Dec 16 '19 15:12 lra

Please, check: https://github.com/lra/mackup/pull/1581

semkagtn avatar May 26 '20 13:05 semkagtn

Issue #949 seems to be related as well

jneuendorf avatar Mar 14 '22 19:03 jneuendorf