Skip to content

Commit

Permalink
Fix terminal-notifier issues
Browse files Browse the repository at this point in the history
- Fix sender issue and stop blocking on calls
  • Loading branch information
facelessuser committed Jun 4, 2017
1 parent cec2f67 commit d632864
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SubNotify 1.4.2

> Released June 4, 2017
- **FIX**: Use official ST icon for messages in Linux and Growl.
- **FIX**: Fix blocking issue with `terminal-notifier`.

# SubNotify 1.4.1

> Released June 2, 2017
Expand Down
9 changes: 3 additions & 6 deletions lib/notify/notify_osx.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,11 @@ def notify_osx_call(title, message, sound, fallback):
params += ["-message", message]
if title is not None:
params += ["-subtitle", title]
if Options.icon is not None:
params += ['-appIcon', Options.icon]
# if Options.sender is not None:
# params += ["-sender", Options.sender]
# params += ["-activate", Options.sender]
if Options.sender is not None:
params += ["-sender", Options.sender]
if sound:
params += ["-sound", "Glass"]
subprocess.call(params)
subprocess.Popen(params)

# if sound:
# # Play sound if desired
Expand Down
3 changes: 1 addition & 2 deletions sub_notify.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,8 @@ def enable_notifications(notice=False):
def get_icon_files():
"""Get icon files."""

platform = sublime.platform()
settings = get_settings()
png_name = 'SublimeText@2x.png' if settings.get('large_icons', platform in ['osx'. 'linux']) else 'SublimeText.png'
png_name = 'SublimeText@2x.png' if settings.get('large_icons',True) else 'SublimeText.png'
graphics = os.path.join(sublime.packages_path(), "SubNotify", "graphics")
png_path = os.path.join(graphics, png_name)
ico_path = os.path.join(graphics, "SublimeBubble.ico")
Expand Down

0 comments on commit d632864

Please sign in to comment.