terminal-notifier icon indicating copy to clipboard operation
terminal-notifier copied to clipboard

Says "ApplePersistence=NO" for all use

Open forthrin opened this issue 6 years ago • 2 comments

  • [X] I looked in closed issues and it has not already been answered
  • macOS: 10.12.6
  • terminal-notifier: 2.0.0
  • installation: homebrew

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?

forthrin avatar May 14 '19 06:05 forthrin

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.

DougThwaites avatar Dec 07 '19 06:12 DougThwaites

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?

forthrin avatar Dec 14 '19 07:12 forthrin