joplin icon indicating copy to clipboard operation
joplin copied to clipboard

"Options" changes in Windows client are not saved because "joplin-desktop\settings.json" cannot be written to

Open phut opened this issue 1 month ago • 2 comments

Operating system

Windows

Joplin version

2.14.20 (prod, win32)

Desktop version info

Joplin 2.14.20 (prod, win32)

Client ID: 9d0a8c38addd4d6bbd1581a142f8abeb Sync Version: 3 Profile Version: 46 Keychain Supported: Yes

Revision: cfd98e3

Repeating To-Dos: 0.10.3

Current behaviour

  1. Start Joplin
  2. Tools -> Options
  3. Navigate options pages, Make Changes to UI (e.g. enable Web clipper, set a theme)
  4. Use "Apply" button. Select "save changes" in modal dialog when it appears
  5. Exit options pages using "Back" button
  6. Exit Joplin
  7. Start Joplin
  8. UI changes have not been saved. UI reverts to previous state (presumably the default settings at installation)

Expected behaviour

Changes made in the options screens should persist over program exit then restart.

Logs

  • Log shows "Permission Denied" when writing to "settings.json" file.
  • The problem appeared to occur because the "settings.json" file is/was a hidden file on Windows.
  • I fixed the problem by using windows explorer to navigate to the "joplin-desktop" directory, then "show hidden files", then setting the file to be non-hidden using context menu -> file properties dialog.
  • With the file no longer hidden, options are saved as expected.
  • I did not make any other changes to the Joplin configuration directory "....config\joplin-desktop". As far as I am aware, the file "settings.json" was created on my system as a hidden file at installation time and no changes were made to it.

phut avatar May 12 '24 16:05 phut