Skip to content
This repository was archived by the owner on Jul 17, 2022. It is now read-only.

Notify send custom images#96

Open
flga wants to merge 2 commits intodylang:masterfrom
flga:notify-send-custom-images
Open

Notify send custom images#96
flga wants to merge 2 commits intodylang:masterfrom
flga:notify-send-custom-images

Conversation

@flga
Copy link

@flga flga commented Mar 18, 2015

This change allows the user to customize the notification image on Linux.

Path resolving is done by node's path.resolve(to).
Relative paths are admissible.

Example:

//in node
var path = require('path');
var notify = require('../lib/notify-lib');

notify({
    image: 'my_logo.png',
    duration: 4,
    title: '...',
    message: '...',
});

//in grunt
grunt.initConfig({
    notify: {
        options: {
            duration: 4,
            image: 'my_logo.png',
            title: '...',
            message: '...',
        }
    }
});

@honsa
Copy link

honsa commented Dec 2, 2018

The commit looks good, just one condition added, if option.image is set use the string to the path otherwise the default image path is used.

Please approve this pull request :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants