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

[INFO] macOS Big Sur 11.0 beta reports & issues

Open JayBrown opened this issue 4 years ago • 14 comments

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.

JayBrown avatar Sep 12 '20 11:09 JayBrown

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.

scotow avatar Nov 15 '20 16:11 scotow

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

helloguille avatar Apr 20 '21 16:04 helloguille

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

shogogg avatar May 05 '21 10:05 shogogg

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

fmaclen avatar Aug 24 '21 22:08 fmaclen

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 

tannerPriest avatar Nov 24 '21 01:11 tannerPriest

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.

wilbeibi avatar Dec 01 '21 01:12 wilbeibi

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

image

F3n67u avatar Mar 23 '22 05:03 F3n67u

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!

chipimix avatar Mar 31 '22 11:03 chipimix

same as @F3n67u 😢

ctf0 avatar Apr 20 '22 08:04 ctf0

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

image

same issue

YunshuaiPeng avatar Apr 21 '22 10:04 YunshuaiPeng

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

frakman1 avatar Aug 10 '22 19:08 frakman1

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.

ghost avatar Aug 20 '22 19:08 ghost

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

  • Verify icon is broken: echo 'Hello!' | terminal-notifier -sound default
  • Open Notifications preference pane
  • Remove terminal notifier from app list
  • Sign app with ad-hoc signature: codesign --sign - --force --deep /opt/homebrew/Cellar/terminal-notifier/2.0.0/terminal-notifier.app
  • Verify icon is fixed: echo 'Piped Message Data!' | terminal-notifier -sound default
  • Reopen Notifications preference pane
  • Allow notifications for terminal notifier

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.)

mokolabs avatar Jul 03 '23 16:07 mokolabs