julienXX / terminal-notifier

Send User Notifications on macOS from the command-line.
Other
6.39k stars 330 forks source link

Says "ApplePersistence=NO" for all use #267

Open forthrin opened 5 years ago

forthrin commented 5 years ago

Since recently, I'm getting an ApplePersistence=NO messages for ALL use, even just for a plain terminal-notifier -title foo -message bar from the command line.

I've used the same terminal-notifier and macOS version for a long time.

This may be very well be caused by running defaults write -g ApplePersistence -bool NO recently. But why does terminal-notifier need to complain about this? How can I get rid of the complaint?

DougThwaites commented 4 years ago

Hi @forthrin

I have had the same thing for same reason by disabling auto-save. To get things back to normal I ran:

defaults delete -g ApplePersistence

I assume this will undo any auto-save changes we have made but i'd rather that then having to fork and patch terminal notifier or find a replacement and even then I think it's more MacOS than terminal-notifier.

All credit goes to:

Mentalist on the Apple Stack Exchange.

forthrin commented 4 years ago

Yep. It happens for other apps too. A (generic) workaround would be nice though, ie. a program that makes macOS not give this unnecessary complaint to the terminal. I don't know if this is so embedded to the core of macOS that it can't be patched even with a low-level C program?