beeep icon indicating copy to clipboard operation
beeep copied to clipboard

not working for mac osx Sequoia 15.2

Open zhiqiangxu opened this issue 10 months ago • 2 comments

I tried Alert/Notify but no luck.

Is this project still maintained?

zhiqiangxu avatar Feb 05 '25 05:02 zhiqiangxu

Same.

yyy110011 avatar Feb 06 '25 19:02 yyy110011

Same here, Seems the problem is the permission of osascript ( the app of macOs that beeep uses ) not being allowed by default to show notification.

Solution:

  • open "script editor"
  • paste an alert/notification command . For example display notification "hello" with title "hi" and click the Play icon ( run the script )
  • you will get a notification to accept/allow notifications from script editor
  • Once you allow, "beeeper" will work again

Found solution here https://forum.latenightsw.com/t/trying-to-use-terminal-for-display-notification/5068

Thanks

diekaines avatar Feb 09 '25 18:02 diekaines

There is no way to work around notification permissions. Now, there is support for terminal-notifier. If it is installed, it will be used instead; however, the user experience is not significantly improved.

gen2brain avatar Jun 12 '25 12:06 gen2brain

@gen2brain Another thing that I noticed on MacOS was that the icons weren't displayed. Is that a limitation of the underlying library? It just shows a stock photo with a pen.

mahyarmirrashed avatar Jul 04 '25 02:07 mahyarmirrashed

@mahyarmirrashed That is a limitation of macOS, not this library. There is no way to display an icon using osascript, and terminal-notifier also fails to show an icon for some time (maybe years).

Terminal-notifier used a hack, where it was an .app bundle, not a terminal app, and it utilised the deprecated NSUserNotification API and some private APIs that are no longer functional. Today, apps should use UNUserNotification instead. And that also means no icons if you are not using the app bundle. I never found an example of UNUserNotification, and it would use C/ObjC and CGo. Perhaps it would be possible with purego, which can use Objective-C without CGo, but again, there would be no .app bundle and no icon.

All in all, not a limitation of this library, but a restriction of macOS.

gen2brain avatar Jul 04 '25 07:07 gen2brain