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

"build successful" notifications steal focus from the terminal

Open mattalxndr opened this issue 8 years ago • 3 comments

Is this a bug or a feature? How can I disable this?

Original: https://github.com/jcgay/maven-color/issues/28

mattalxndr avatar Feb 12 '17 23:02 mattalxndr

This is not "really" a feature :)

Depending on which notifier is used, focus can be lost when AWT is used somewhere (see #16)

I'll give it another look, do you know which notifier is used ? It will try to find one available in https://github.com/jcgay/maven-notifier/wiki#default-notifiers

You can disable desktop notifications: https://github.com/jcgay/maven-notifier/wiki#disable-notification

jcgay avatar Feb 13 '17 15:02 jcgay

Also noticed this today and it's largely a showstopper for using it. I'm on MacOS and the notification extension causes a GUI app to start up, stealing focus and polluting app list.

I think this is what you want: https://code-maven.com/display-notification-from-the-mac-command-line

headius avatar Mar 04 '20 21:03 headius

In some case the notification is already done with osascript : https://github.com/jcgay/send-notification/blob/master/send-notification/src/main/java/fr/jcgay/notification/notifier/notificationcenter/SimpleNotificationCenterNotifier.java

Which notifier are you using ? Can you run your build with more log (mvn -X) and give me the result ?

jcgay avatar Mar 06 '20 06:03 jcgay