This is definitely not right.

Sublime can delete the file just fine (and write any old file in it's place)
  Even we can modify the file when running unelevated, which is **B**ad.

  So there's gotta be some way to allow _us_ to write the file only when elevated
This commit is contained in:
Mike Griese 2021-09-09 10:23:53 -05:00
parent 8569211d0f
commit aef422d5f1

View file

@ -124,8 +124,8 @@ namespace winrt::Microsoft::Terminal::Settings::Model::implementation
Json::StreamWriterBuilder wbuilder;
const auto content = Json::writeString(wbuilder, root);
// WriteUTF8FileAtomic(_path, content, true);
WriteUTF8File(_path, content, true);
WriteUTF8FileAtomic(_path, content, true);
// WriteUTF8File(_path, content, true);
}
CATCH_LOG()