Closed rafael-xmr closed 1 year ago
This is not the correct solution, because now the actual Erwic defaults can't be written, even though a datafolder is not erwic specific (a folder might be used for erwic AND regular usage at different times) and because settings are not prefixed with s:
in all cases, just the special names for the container settings are, others don't need or accept the s:
prefix.
Thanks for making a potential fix for this though, I'll think of a better solution for this or feel free to suggest one!
Ah, sorry for rushing with this without even opening a tracking issue, just wanted to get this working here so I did the changes, what do you think about the new commit? I think the new erwic defaults const also make it easier to modify in the future by changing one line in the object
Yes, this is much better, thanks for fixing this!
defaultSettings
has for examplecontainernewtab
set tos:usecurrent
, and when running an erwic application the setting is set tos:external
, but when trying to set it back tos:usecurrent
and runningmkviebrc
to write to disk, the setting can't be saved as it still matches thedefaultSettings
default, so erwic applications will always run overriding these settings that can't be saved. This change instead replaces thedefaultSettings
value when running an erwic application, and then allowing that setting to be written to disk when changed as it won't match the new defaults