alert icon indicating copy to clipboard operation
alert copied to clipboard

add support for growl on windows

Open tkhoa2711 opened this issue 9 years ago • 8 comments

tkhoa2711 avatar Mar 29 '16 08:03 tkhoa2711

Is appending .exe really needed for executable-find on Windows?

jwiegley avatar Mar 29 '16 16:03 jwiegley

My other question before accepting this is: Have you signed a copyright assignment with the FSF for these changes?

jwiegley avatar Mar 29 '16 16:03 jwiegley

Well, on Windows there are growlnotify.com and grownotify.exe (they're described here http://www.growlforwindows.com/gfw/help/growlnotify.aspx). growlnotify.com will not work on GUI application.

Even though (executable-find "growlnotify") will return growlnotify.exe because .exe precedes .com in exec-suffixes list, I think it's better to explicitly state the extension.

Anyway, I use Windows at work so I had the chance to test this out.

tkhoa2711 avatar Mar 30 '16 00:03 tkhoa2711

Regarding your other question, I've never done that before. How do I do that?

tkhoa2711 avatar Mar 30 '16 00:03 tkhoa2711

If just (executable-find "growlnotify") works on both Windows and non-Windows, then I would rather just use that, than to conditionalize the code simply for "clarity" on one platform.

To assign copyright, you would send an e-mail to [email protected], asking for the necessary forms. Since alert.el is going to become part of Emacs itself at some point, I need for all contributions to have signed such forms before accepting the pull request. Thanks!

jwiegley avatar Mar 30 '16 15:03 jwiegley

you can use growl for Windows already. growl for Windows supports gntp protocol. https://github.com/jwiegley/alert/blame/master/README.md#L103

myuhe avatar Mar 30 '16 21:03 myuhe

@jwiegley I made the change to simplify that search for growlnotify. In the meantime, I've asked the GNU guys for necessary copyright papers.

@myuhe I tried to use gntp, but it didn't work out well. Not sure there's anything wrong with my setup, either with alert.el or Growl on Windows, or not.

tkhoa2711 avatar Mar 31 '16 12:03 tkhoa2711

gntp.el requires some setup. See README. https://github.com/tekai/gntp.el

I use growl for Windows with gntp.el.

myuhe avatar Mar 31 '16 12:03 myuhe

@tkhoa2711 Hi Khoa, did your assignment papers go through?

jwiegley avatar Aug 07 '22 16:08 jwiegley

@jwiegley I know it's been a long time ago, but I did sign and send the paperwork to GNU back then. I haven't heard confirmation from them though.

tkhoa2711 avatar Aug 08 '22 00:08 tkhoa2711

That's good enough for me. If it becomes an issue in future, I'll reach out.

jwiegley avatar Aug 08 '22 05:08 jwiegley