julienXX / terminal-notifier

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

[INFO] macOS Big Sur 11.0 beta reports & issues #283

Open JayBrown opened 3 years ago

JayBrown commented 3 years ago

terminal-notifier: 2.0.0 macOS: Big Sur 11.0 Public Beta 6

(1) -execute is working fine, it seems

(2) -appIcon is not working, which was to be expected, because "it relies on a private method"; hope you'll get that working again in the next update

(3) The -title option doesn't override the bundle name anymore. Before you just added -title="Title", and it overrode the "terminal-notifier" title

snap1

In Big Sur you have an additional header in the notification float denoting not the process name, but the basename of the app bundle:

snap2

Maybe there is also a "private method" to change this, but if you change the basename terminal-notifier.app for something else, it works:

snap3

So this would definitely work for nested copies of terminal-notifier, e.g. in a Platypus or Automator app, which also means that we now have four, not three lines of text to print information to the user.

If you change terminal-app's icon, that will (as before) work too. So for nested instances of terminal-notifier, or dedicated standalone instances of terminal-notifier, you can just change icons + Bundle IDs + app basenames, and you're good to go.

snap4

But it would be great to have something like an -appName argument alongside -appIcon to implement this for generic copies of terminal-notifier as well.

scotow commented 3 years ago

The -sound option doesn't seem to work anymore too. It plays the same (old default) sound no matter what sound name I try to pass.

helloguille commented 3 years ago

After explicitly allowing the notifications on BigSur (Click on options after each notification), the sounds works!

shogogg commented 3 years ago

The -sound option doesn't seem to work anymore too.

I met same problem but solved it. It works fine when specified the old sound name.

e.g.

# It does not work
terminal-notifier ... -sound Breeze

# It works!!
terminal-notifier ... -sound Blow

The corresponding sound names here: https://www.youtube.com/watch?v=XqjifWtmQqQ

fmaclen commented 2 years ago

You can find the names for the OS sounds in /System/Library/Sounds.

tannerPriest commented 2 years ago

Any update with appIcon? I am on bigSur and I can not seem to get the icon to work

terminal-notifier -title ProjectX -subtitle "new tag detected" -message "Finished" -appIcon http://vjeantet.fr/images/logo.png 
wilbeibi commented 2 years ago

There seems no good alternatives icon API for big sur (searched other open source projects as well, same issue), it seems big sur can only use pre-baked assets files as the icon. So I guess -contentImage might be the only workaround.

F3n67u commented 2 years ago

I am on macOS Monterey. -appIcon don't work either.

image
chipimix commented 2 years ago

you can just change icons + Bundle IDs + app basenames, and you're good to go.

Could you please elaborate on this? Thanks!

[EDIT] I tried changing filenames as well as the Terminal.icns file in terminal-notifier.app/Contents/Resources to no sucess; also tried changing the package.json name and run npm install but I don't think that's how you did it! [EDIT x2] Replacing "terminal-notifier" in the "Info.plist" as well as the "notification.js" file did the trick!

ctf0 commented 2 years ago

same as @F3n67u 😢

YunshuaiPeng commented 2 years ago

I am on macOS Monterey. -appIcon don't work either.

image

same issue

frakman1 commented 2 years ago

you can just change icons + Bundle IDs + app basenames, and you're good to go.

Could you please elaborate on this? Thanks!

[EDIT] I tried changing filenames as well as the Terminal.icns file in terminal-notifier.app/Contents/Resources to no sucess; also tried changing the package.json name and run npm install but I don't think that's how you did it! [EDIT x2] Replacing "terminal-notifier" in the "Info.plist" as well as the "notification.js" file did the trick!

I installed terminal-notifier via brew so there is no .app folder to modify. Am I supposed to install it differently?

I am getting this result for the icon too (Ventura):

image
ghost commented 2 years ago

Experiencing the identical issue as @frakman1. I notice that by default I end up with the same icon when using the terminal-notifier. If I use the '-appIcon' argument , it doesn't work. However, I do notice the -contentImage will work with an external URL, but for internal images. I am currently using Monterey v12.5. Otherwise all other features seem to work for me. I also used homebrew to install this application as well.

mokolabs commented 1 year ago

Here's what I use to fix the broken app icon:

This definitely works on Monterey, but I'm not sure about Ventura.

(Note: when running the code signing command, you may need to tweak the path to your local terminal-notifier binary.)