http://code.google.com/p/ibus-table-emoji/
其说明日志在:
http://shellex.info/ibus-emoji-im/
前阵子自己重新安装了Ubuntu,这回要把emoji再装回去,还是要重复一些步骤……
本着Python写脚本代替手工重复操作的原则,我就写了这个东西,大家看看给点改进意见哈~ m( =∩王∩= )m
附件是从网上下载的压缩包,挺小的。里面增加了我的 emoji-installer.py
代码: 全选
#! /usr/bin/env python
# filename:emoji-installer.py
import os
def install():
'''You can use this script to install ibus-table-emoji'''
os.system("sudo cp emoji-table.db /usr/share/ibus-table/tables")
os.system("sudo cp ibus-emoji.svg /usr/share/ibus-table/icons/")
print "*" * 60
print "emoji has been installed successfully\nand You need to restart iBus to take it work,\nenjoy~ (^_^)"
print "*" * 60
#FIXME How to restart iBus after I made these steps?
if __name__ == "__main__":
install()