openstenoproject / plover

Open source stenotype engine
http://opensteno.org/plover
GNU General Public License v2.0
2.35k stars 279 forks source link

Readonly status change on dictionary reload are not updated #1399

Open user202729 opened 3 years ago

user202729 commented 3 years ago

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

user202729 commented 3 years ago

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.

benoit-pierre commented 2 years ago

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