当前位置: 首页 > 工具软件 > emesene > 使用案例 >

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

袁子瑜
2023-12-01

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就可以了~

 

转载于:https://www.cnblogs.com/flyme/archive/2011/09/30/2196548.html

 类似资料: