Comments (11)
I need to look at the updated doc for NotificationCenter. Thanks for the offer I’ll ask you if I need testing as I don’t install beta-OSes on my machine.
from terminal-notifier.
Same here.
from terminal-notifier.
UI seems to be different, too… found this on the web.
from terminal-notifier.
@JayBrown Yes, it is. The UI is rewritten in SwiftUI, and I’m guessing that the notification subsystem itself also got rewritten?
from terminal-notifier.
It's just that the Notification Center bundle identifier has changed (to "com.apple.notificationcenterui2" :) ). Let me see if I can get a clean PR with a reasonable conditional. It works in BigSur if I just change that value but obviously that's not ok on its own. You do still need to allow terminal-notifier to make notifications of course but that's easy clicking and you're prompted to do so.
from terminal-notifier.
#281 🤞 :)
from terminal-notifier.
There may be a further Big Sur issue with running this via symlink -- if I don't run this directly from the built binary, it hangs :(
from terminal-notifier.
That's a problem with many apps, whose executables have command-line support on paper. The best thing would be to export the bundle's executable directory in $PATH
.
export PATH=$PATH:/Applications/terminal-notifier.app/Contents/MacOS
In shell scripts I always use mdfind
to search for the terminal-notifier Bundle ID, giving me variable $tn_loc
, and then execute terminal-notifier as "$tn_loc"/Contents/MacOS/terminal-notifier
. If there's no terminal-notifier on the system, I revert to osascript
for notifications.
EDIT: but a developer can make it happen… for example ProcessMonitor by @objective-see runs fine when symlinked.
from terminal-notifier.
Note that in Big Sur Beta 3 the Notification Center bundle identifier has changed back to "com.apple.notificationcenterui", so functionally should be restored to everyone.
from terminal-notifier.
I'm guessing this can be closed.
from terminal-notifier.
Hmm I'm on macOS 12.5 and this happens again.
Error
2022-07-28 11:36:23.394 terminal-notifier[77241:604046] [!] Unable to post a notification for the current user (jin), as it has no running NotificationCenter instance.
Info:
$ defaults domains | grep notification
com.apple.notificationcenterui
$ defaults read com.apple.notificationcenterui
{
"last-analytics-stamp" = "680547569.399271";
widgets = {
vers = 1;
widgets = (
{length = 4018, bytes = 0x62706c69 73743030 d6010203 04050607 ... 00000000 00000f78 },
{length = 9808, bytes = 0x62706c69 73743030 d6010203 04050607 ... 00000000 00002616 },
{length = 920, bytes = 0x62706c69 73743030 d5010203 04050607 ... 00000000 00000362 },
{length = 16416, bytes = 0x62706c69 73743030 d6010203 04050607 ... 00000000 00003fe6 },
{length = 16409, bytes = 0x62706c69 73743030 d6010203 04050607 ... 00000000 00003fdf },
{length = 9129, bytes = 0x62706c69 73743030 d6010203 04050607 ... 00000000 0000236f },
{length = 9842, bytes = 0x62706c69 73743030 d6010203 04050607 ... 00000000 00002638 },
{length = 918, bytes = 0x62706c69 73743030 d5010203 04050607 ... 00000000 00000360 },
{length = 9825, bytes = 0x62706c69 73743030 d6010203 04050607 ... 00000000 00002627 },
{length = 83230, bytes = 0x62706c69 73743030 d6010203 04050607 ... 00000000 000144ca },
{length = 7780, bytes = 0x62706c69 73743030 d6010203 04050607 ... 00000000 00001e2a },
{length = 4581, bytes = 0x62706c69 73743030 d6010203 04050607 ... 00000000 000011ab },
{length = 990, bytes = 0x62706c69 73743030 d5010203 04050607 ... 00000000 000003a8 },
{length = 12276, bytes = 0x62706c69 73743030 d6010203 04050607 ... 00000000 00002fba },
{length = 960, bytes = 0x62706c69 73743030 d5010203 04050607 ... 00000000 0000038a },
{length = 8304, bytes = 0x62706c69 73743030 d6010203 04050607 ... 00000000 00002036 },
{length = 8611, bytes = 0x62706c69 73743030 d6010203 04050607 ... 00000000 00002169 },
{length = 8275, bytes = 0x62706c69 73743030 d6010203 04050607 ... 00000000 00002019 },
{length = 9594, bytes = 0x62706c69 73743030 d6010203 04050607 ... 00000000 00002540 }
);
};
}
from terminal-notifier.
Related Issues (20)
- macOS ARM support? (Apple Silicon) HOT 1
- How button text(actions) supports Chinese HOT 1
- [INFO] macOS Big Sur 11.0 beta reports & issues HOT 13
- Snooze
- Stacked notifications? HOT 3
- -open: Click terminal-notification then brings another notification HOT 12
- -activate not work with icon.
- No Notification in macOS12.1 HOT 6
- dropping msg 1 app not found HOT 3
- Mention in README that sticky notifications can be controlled by System Prefs
- Fail to pop up when trigger in python subprogess with crontab -e HOT 1
- how can I customize alert sounds HOT 1
- Can't play system alert sounds on Ventura 13.1
- use -sender will stuck on ventura HOT 1
- notifications are muted and i can't unmute HOT 1
- cannot use with teams deeplinks
- The timeout option is no longer available?
- No notifications during screen recording HOT 2
- -open does not work in macOS Sonoma HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terminal-notifier.