Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"build successful" notifications steal focus from the terminal #18

Open
mattalxndr opened this issue Feb 12, 2017 · 3 comments
Open

"build successful" notifications steal focus from the terminal #18

mattalxndr opened this issue Feb 12, 2017 · 3 comments

Comments

@mattalxndr
Copy link

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

Original: jcgay/maven-color#28

@jcgay
Copy link
Owner

jcgay commented Feb 13, 2017

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

@headius
Copy link

headius commented Mar 4, 2020

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

@jcgay
Copy link
Owner

jcgay commented Mar 6, 2020

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants