UPDATE: looking further into the problem it seems that the user needs to set this variable prior starting pidgin through the desktop manager or other means (if not using one like me). Once this is done, the attached pidgin script works fine. I'm looking forward to see it in the official distribution.
Thank you!

