Skip to content

Commit

Permalink
icon for linux notifications!
Browse files Browse the repository at this point in the history
  • Loading branch information
dschep committed Dec 18, 2015
1 parent caa2b5a commit c9be814
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion ntfy/backends/linux.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
from subprocess import call
from os import path

ICON = path.abspath(path.join(path.split(path.split(__file__)[0])[0],
'icon.png'))

def notify(subject, config, message=None, device=None):
argv = ['notify-send', subject]
argv = ['notify-send', '-i', ICON, subject]
if message:
argv.append(message)
retcode = call(argv)
Expand Down
Binary file added ntfy/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
setup(
name='ntfy',

version='0.1.2',
version='0.1.3',

description='A utility for sending push notifications',
long_description=long_description,
Expand Down Expand Up @@ -44,6 +44,7 @@
keywords='push notification',

packages=['ntfy', 'ntfy.backends'],
package_data={'ntfy': ['icon.png']},

install_requires=[
'requests',
Expand Down

0 comments on commit c9be814

Please sign in to comment.