MichaelAquilina / zsh-auto-notify

⏰ ZSH plugin that automatically sends out a notification when a long running task has completed.
GNU General Public License v3.0
404 stars 41 forks source link

check notification service before enable #43

Open FlowBreeze opened 1 year ago

FlowBreeze commented 1 year ago

fix issue: https://github.com/MichaelAquilina/zsh-auto-notify/issues/42

MichaelAquilina commented 1 year ago

@FlowBreeze thanks for the PR :) you need to install dbus-send in circleci OR mock it in order to get the tests to pass.

Let me know if you need a hand with this. Happy to help

FlowBreeze commented 1 year ago

@MichaelAquilina I'm Sorry, I never use circleci before so I just rewrite my code and add dbus-send check. If you need to configure circleci, you may do it by yourself.

FlowBreeze commented 1 year ago

@MichaelAquilina yes in here is unclear, so i change it to 'unknown'

here is my consideration: dbus-send is a freedesktop buildin tool, So I think it is rarely occurred an system has notify-send but not dbus-send until i met an error from circle ci

And It's ok to change my code as you like