GithubHelp home page GithubHelp logo

jcgay / send-notification Goto Github PK

View Code? Open in Web Editor NEW
90.0 4.0 11.0 385 KB

A toolbox in Java to send notifications (Growl, Snarl, Notification Center, notify-send, etc)

License: MIT License

Java 68.40% Shell 1.07% Groovy 29.40% Batchfile 1.12%
desktop-notifications

send-notification's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar jcgay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

send-notification's Issues

[DepShield] (CVSS 7.5) Vulnerability due to usage of org.eclipse.jetty:jetty-server:9.2.26.v20180806

Vulnerabilities

DepShield reports that this application's usage of org.eclipse.jetty:jetty-server:9.2.26.v20180806 results in the following vulnerability(s):


Occurrences

org.eclipse.jetty:jetty-server:9.2.26.v20180806 is a transitive dependency introduced by the following direct dependency(s):

com.github.tomakehurst:wiremock:2.22.0
        └─ org.eclipse.jetty:jetty-server:9.2.26.v20180806

This is an automated GitHub Issue created by Sonatype DepShield. Details on managing GitHub Apps, including DepShield, are available for personal and organization accounts. Please submit questions or feedback about DepShield to the Sonatype DepShield Community.

[DepShield] (CVSS 5.9) Vulnerability due to usage of com.google.guava:guava:18.0

Vulnerabilities

DepShield reports that this application's usage of com.google.guava:guava:18.0 results in the following vulnerability(s):


Occurrences

com.google.guava:guava:18.0 is a transitive dependency introduced by the following direct dependency(s):

com.google.guava:guava:18.0

fr.jcgay.send-notification:send-notification:0.15.1-SNAPSHOT
        └─ com.google.guava:guava:18.0

This is an automated GitHub Issue created by Sonatype DepShield. Details on managing GitHub Apps, including DepShield, are available for personal and organization accounts. Please submit questions or feedback about DepShield to the Sonatype DepShield Community.

Indicate if a notifier is persistent

Some notifier are always displayed (like AnyBar).
These should be flagged somewhere (probably Notifier).

It would be useful in maven-notifier or grade-notifier to not bypass the notification
if the notifier is persistent. When using AnyBar actually the build tool icon is displayed when
starting the build, but the result is not sent for short live build...

Temporary file creation

When I have integrated this notifier into Gradle plugin, there is being created a file named "null" (on CWD) with contents "Active code page: 1250". This is annoying for my plugin users, because this file is created under directory using VCS.

Now I am forced to remove that file manually, even just after Notifier.close() (it is not cleaning :/)

Environment: Windows 10, 64-bit
Send-notification: 0.14.0
Java: 8

Support native notification icons

I am using linux notify-send module and I would want to use native icon instead of specifying one but API do not support it.

Please would you consider this feature ?

Why make Application mandatory

As a developer,
When I want to send a notification from my app,
Then I need to provide both an Application and Notification to the library
And Application seems superfluous.

Full code:

        fr.jcgay.notification.Notifier notifier = new SendNotification()
                .setApplication(Application.builder()
                        .id("an-id")
                        .name("a-name")
                        .icon(buildIcon())
                        .build())
                .initNotifier();

        try {
            notifier.send(Notification.builder()
                    .title("Title")
                    .message("Message")
                    .icon(buildIcon())
                    .build());
        } finally {
            notifier.close();
        }

What I expected:

        try {
                    fr.jcgay.notification.Notifier notifier = new SendNotification().send(Notification.builder()
                    .title("Title")
                    .message("Message")
                    .icon(buildIcon())
                    .build());
        } finally {
            notifier.close();
        }

Technically, why Application is required ?

[DepShield] (CVSS 7.5) Vulnerability due to usage of org.jboss.netty:netty:3.2.1.Final

Vulnerabilities

DepShield reports that this application's usage of org.jboss.netty:netty:3.2.1.Final results in the following vulnerability(s):


Occurrences

org.jboss.netty:netty:3.2.1.Final is a transitive dependency introduced by the following direct dependency(s):

com.google.code.jgntp:jgntp:1.2.1
        └─ org.jboss.netty:netty:3.2.1.Final

fr.jcgay.send-notification:send-notification:0.15.1-SNAPSHOT
        └─ com.google.code.jgntp:jgntp:1.2.1
              └─ org.jboss.netty:netty:3.2.1.Final

This is an automated GitHub Issue created by Sonatype DepShield. Details on managing GitHub Apps, including DepShield, are available for personal and organization accounts. Please submit questions or feedback about DepShield to the Sonatype DepShield Community.

Support multiple notifications

It would be useful to support multiple notifications e.g.

notifier.implementation=kdialog,pushbullet

Also, does the extension log information anywhere?

BurntToast causes auto-detect to be very slow on Windows

I found maven-notifier to be very slow on Windows 10 with default configuration (ie no config). Maven commands which had taken about 1 second started taking about 10 seconds, and I eventually traced it to BurntToastNotifier.tryInit. (I didn't have BurntToast installed.)

I just installed BurntToast to see if Get-Module -ListAvailable -Name BurntToast | Format-Table Name could detect it faster, and I think it's far too slow to activate automatically.

Would you accept a PR to remove BurntToast from the automatic detection in NotifierProvider.available()?

[DepShield] (CVSS 7.5) Vulnerability due to usage of org.eclipse.jetty:jetty-http:9.2.26.v20180806

Vulnerabilities

DepShield reports that this application's usage of org.eclipse.jetty:jetty-http:9.2.26.v20180806 results in the following vulnerability(s):


Occurrences

org.eclipse.jetty:jetty-http:9.2.26.v20180806 is a transitive dependency introduced by the following direct dependency(s):

com.github.tomakehurst:wiremock:2.22.0
        └─ org.eclipse.jetty:jetty-server:9.2.26.v20180806
              └─ org.eclipse.jetty:jetty-http:9.2.26.v20180806

This is an automated GitHub Issue created by Sonatype DepShield. Details on managing GitHub Apps, including DepShield, are available for personal and organization accounts. Please submit questions or feedback about DepShield to the Sonatype DepShield Community.

Smarter default notifier

Choosing a default notifier is based on hard-coded rules:

  • Windows, OS X -> growl
  • Linux -> notify-send

It would be great to have a system which can automatically discover available notifier.

Growl error log when automatically choose a notifier

When no notifier implementation is provided, notifiers try to initialize themselves until one succeed.
They should not log an error when they can be initialized.
Actually for example Growl is polluting logs with errors where it shouldn't.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.