plover icon indicating copy to clipboard operation
plover copied to clipboard

Readonly status change on dictionary reload are not updated

Open user202729 opened this issue 3 years ago • 2 comments

Describe the bug

title.

To Reproduce

Steps to reproduce the behavior:

  1. Add a dictionary.
  2. Set the dictionary file attribute to readonly (with external tool)
  3. Refresh the dictionaries in Plover.
  4. The dictionary is not shown as readonly. (error)
  5. Add an entry to that dictionary.
  6. The dictionary is written to normally, and the readonly flag disappears. (error)

Expected behavior

~

Operating system

  • OS: Some GNU/Linux distribution
  • Plover Version: https://github.com/openstenoproject/plover/commit/0501aa33a0504971d1ba7452979c54798f7c3986

user202729 avatar Aug 03 '21 11:08 user202729

Update: The status is correctly updated if the file content is changed.

Still, the save function should not overwrite the file if it's read-only.

user202729 avatar Aug 03 '21 15:08 user202729

Yes, Plover relies on timestamps. So I'm tempted to close this as wont-fix.

benoit-pierre avatar Feb 27 '22 16:02 benoit-pierre