I’m back (short business trip). Direct to the point: problem solved.
I said I wasn’t realizing something obvious: then the folder where the preferences file is (let’s call it “settings folder”) has to be initialized … Well, that’s weird … but obviously It worked.
I’ve adopted another solution: instead of initialize, create the .duplicacy folder. etc, I simply moved the .duplicacy file from the repository to the settings folder.
Now I make a cd command to the settings folder, which finds the .duplicacy file, which points to … the setting folder …
Would not it be much simpler if Duplicacy identified the presence of the preferences file and adopted it?
Probably doesn’t make sense to use the two options (-pref-dir and -repository) as I’m doing. It may be better to re-adopt the .duplicacy folder + the -repository option, and abandon the use of the .duplicacy file. It no longer makes sense with the configuration completely centralized as it is now.
Anyway, it’s working … Thanks for the hints!