Max | 10 Oct 2011 11:50
Picon

libnotify and avatars

Hello.

The libnotify alert works quite fine for me.
However, one thing is unclear from documentation: what should I set into
jabber-libnotify-icon to make display appropriate avatar?

Or, in other words - how to get the filename of cached avatar to convey it into
jabber-libnotify-icon?

best regards,
Max.

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Emacs-jabber-general mailing list
Emacs-jabber-general <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emacs-jabber-general
Terechkov Evgenii | 10 Oct 2011 15:11
Picon

Re: libnotify and avatars

On Mon, 10 Oct 2011 17:50:30 +0800, Max <govnototalitarizm <at> gmail.com> wrote:

> The libnotify alert works quite fine for me.
> However, one thing is unclear from documentation: what should I set into
> jabber-libnotify-icon to make display appropriate avatar?
> Or, in other words - how to get the filename of cached avatar to convey it into
> jabber-libnotify-icon?

There is no such feature at this moment. jabber-libnotify-icon assumed
to be icon's filename and used as is. Patches are welcome.

--

-- 
                                                WBR, Terechkov
                                                Evgenii.

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
Max | 16 Oct 2011 19:20
Picon

Re: libnotify and avatars

10.10.2011 21:11, Terechkov Evgenii пишет:

> There is no such feature at this moment. jabber-libnotify-icon assumed
> to be icon's filename and used as is. Patches are welcome.

I'd love to but my elisp skills are too limited ATM.

It looks like the right place to patch is jabber-process-chat function in jabber-chat.el
We can use smth like this:
(setq jabber-libnotify-icon (jabber-avatar-find-cached (calc-sha1 from)))

The problem is that I can't figure out how to implement "calc-sha1" function to get
necessary parameter for jabber-avatar-find-cached from jid.

A little help in here, please?

cheers,
Max.

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Emacs-jabber-general mailing list
Emacs-jabber-general <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emacs-jabber-general
(Continue reading)


Gmane