deckarep / gosx-notifier

gosx-notifier is a Go framework for sending desktop notifications to OSX 10.8 or higher

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gosx-notifier and portability?

ViViDboarder opened this issue · comments

commented

I'm relatively new to Go, so I'm not sure if this is done or if it's doable.

I'd like to include gosx-notifier in a project but I don't want to break cross platform support.

I do something similar with the same library in a Ruby project I've been working on. There I'm able to see if terminal-notifier exists, and if it does, I use it. If not, I carry on like nothing was ever missing.

It would be awesome to just have notifications work if I'm installed on OSX and then to have them just not show up if I'm on Ubuntu or Windows.

Hi Ian,

So on non-OSX based platforms you want the process to just silently fail? I think I could set that up actually.

I'll look into this over the next few days or so.

-Ralph

On Jun 17, 2014, at 9:30 AM, Ian notifications@github.com wrote:

I'm relatively new to Go, so I'm not sure if this is done or if it's doable.

I'd like to include gosx-notifier in a project but I don't want to break cross platform support.

I do something similar with the same library in a Ruby project I've been working on. There I'm able to see if terminal-notifier exists, and if it does, I use it. If not, I carry on like nothing was ever missing.

It would be awesome to just have notifications work if I'm installed on OSX and then to have them just not show up if I'm on Ubuntu or Windows.


Reply to this email directly or view it on GitHub.

commented

Yea, that's exactly it.

Thanks for looking into it.

commented

So I guess this can be closed.

Just wanted to let you know I made a pretty simple library inspired by yours in case you want to check it out and or borrow from it. gotifier

Yours is definitely more full featured for Mac users. My goal was for simple notifications for multiple platforms. I hope to add more than Ubuntu and OSX eventually.

Nice, a cross platform solution would definitely be nice. I think it could get there eventually. Cool stuff!