mail-notifr icon indicating copy to clipboard operation
mail-notifr copied to clipboard

Account gone after restart

Open royduin opened this issue 3 years ago • 11 comments

Every time I restart the app the accounts are gone and I've to reconfigure it. I'm having that issue for years, also with the v1 app. After the 2.0.0 update the app also stays in the dock. When I close it it closes completely. Any ideas?

royduin avatar Oct 26 '21 07:10 royduin

@royduin Sorry you have this issue. 2.0 has different account storage from previous 1.x versions (but they still persist to system defaults store), I have no idea why this would happen. Is this happening on the same machine, or is it behaving that on multiple Macs?

Would you mind running this in Terminal.app to reset app data, then relaunch and see if it works properly?

defaults delete com.ashchan.GmailNotifr`

Regarding the app staying in dock, it only does that for the first launch (or when it starts and there's no accounts yet). This is to show the UI by default to add account.

ashchan avatar Oct 26 '21 11:10 ashchan

Got just one Mac so no idea

2021-10-26 13:59:20.418 defaults[51952:18792029]
Domain (com.ashchan.GmailNotifr) not found.
Defaults have not been changed.

Maybe it stays in the dock because of the persistent data issue. I'll try to remove it completely and reinstall.

And what's the current state? It's fully free? Used the free version for years but I'd some issues so I bought the payed version, now it's all free and fully open source again?

royduin avatar Oct 26 '21 12:10 royduin

@royduin Yes it’s totally free and will always be (decided to do so during the pandemic). It has been open source from the very beginning.

I rewrote it in SwiftUI but the main update purpose is to bring the long waited google oauth. After I fix new bugs I guess we can leave it as for another few years.

ashchan avatar Oct 26 '21 12:10 ashchan

Awsome, thanks for your work! Removed it, including everything related in Keychain and reinstalled through the App Store, same issues. Got a MacBook Pro (Retina, 15-inch, Mid 2015) on Big Sur 11.1 (20C69).

royduin avatar Oct 26 '21 12:10 royduin

That’s sad. Does ‘defaults read com.ashchan.GmailNotifr‘ show any data?

ashchan avatar Oct 26 '21 13:10 ashchan

No nothing:

2021-10-26 15:37:49.213 defaults[55327:18844704]
Domain com.ashchan.GmailNotifr does not exist

Also no results with

defaults domains | grep ashchan

Maybe some permission issue?

royduin avatar Oct 26 '21 13:10 royduin

@royduin That's really strange. FYI the actual UserDefaults value should be persisted in this sandbox location:

~/Library/Containers/com.ashchan.GmailNotifr/Data/Library/Preferences/com.ashchan.GmailNotifr.plist

I don't know if uninstalling and deleting the full ~/Library/Containers/com.ashchan.GmailNotifr folder would help a bit.

ashchan avatar Oct 27 '21 00:10 ashchan

Removed the folder but no difference, any other suggestions?

royduin avatar Oct 27 '21 07:10 royduin

Unfortunately no. I never encountered this issue before. 🙈

ashchan avatar Oct 27 '21 08:10 ashchan

I'll ask someone else to install it and see if it's working properly. Thanks for your help!

royduin avatar Oct 27 '21 08:10 royduin

@royduin thank you for your patience.

ashchan avatar Oct 27 '21 08:10 ashchan