Ubuntu root下无法启动emesene的解决方法

emesene是linux下的msn替代工具,界面很不错,但在root账户下其是无法启动的..

解决方法:

编辑他的配置文件:gedit /usr/share/emesene/Controller.py

注释掉如下代码后即可:

    if (os.name == 'posix') and (os.getuid() == 0) and (args[4] == False):
        print "I refuse to run as root. " \
              "If you know the risks and still want to do it," \
              " just add the --i-know-that-running-emesene-as-root-is-bad option."
        return

注释使用“#”....
#    if (os.name == 'posix') and (os.getuid() == 0) and (args[4] == False):
#        print "I refuse to run as root. " 
#                "If you know the risks and still want to do it," \
#                " just add the --i-know-that-running-emesene-as-root-is-bad option."
#        return


这样之后,去运行emesene就可以了~


posted @ 2011-09-30 14:51  balenofly  阅读(354)  评论(0编辑  收藏  举报