eneshecan / whatsapp-for-linux

An unofficial WhatsApp desktop application for Linux.
GNU General Public License v3.0
1.01k stars 104 forks source link

Preferences are not saved when the app is closed to tray #325

Closed FelixFourcolor closed 1 year ago

FelixFourcolor commented 1 year ago

Encountered behavior

When I change the preferences, close the app to tray, and open it from tray again, the new preferences appear to have been saved (the UI shows the new preferences). But when I reboot, the preferences go back to before.

My investigation

By reading ~/.config/whatsapp-for-linux/settings.conf, I found that preferences are only actually saved when I explicitly call "quit". The file is only written to when the app quits, not when being closed to tray. And the file is never written to if the computer shuts down while the app is still in tray.

FelixFourcolor commented 1 year ago

@eneshecan You're awesome!