1.关系普及
Empathy是个托,python-papyon是个python实现的msn库,telepathy-butterfly是个完成msn功能的python客户端。2.修改办法
sudo vim /usr/share/pyshared/papyon/conversation.py查找 if message_type == 这个字符串
找到内容为:
if message_type == 'text/plain':
msg = ConversationMessage(unicode(message.body, message_encoding),
TextFormat.parse(message_formatting),
self.__last_received_msn_objects)
try:
display_name = message.get_header('P4-Context')
将if判断后try之前中间定义msg这一堆内容修改为如下:
try:
msg = ConversationMessage(unicode("["+message.get_header('P4-Context')+"]"+message.body, message_encoding),
TextFormat.parse(message_formatting),
self.__last_received_msn_objects)
except KeyError:
msg = ConversationMessage(unicode(message.body, message_encoding),
TextFormat.parse(message_formatting),
self.__last_received_msn_objects)
保存后重新启动empathy,msn群里就能显示昵称鸟。
下载下来后执行:
chen@54chen:~$ gunzip conversation.py.gz
chen@54chen:~$ sudo cp conversation.py /usr/share/pyshared/papyon/
我的版本是:Empathy 2.30.1
原创文章如转载,请注明:转载自五四陈科学院[http://www.54chen.com]
捐赠说明