ubuntu主菜单崩溃问题解决

感觉是在主菜单中取消“访问快乐无极网站”时会发生这种情况,很诡异

调节自己的应用程序主菜单,结果不小心给弄崩溃了,点击应用程序菜单,无法打开,选择主菜单编辑选项,也无法启动了,试着在命令行下运行

alacarte出现如下的结果:

[quote]/usr/lib/python2.5/site-packages/apt/progress.py: inconsistent use of
tabs and spaces in indentation
Traceback (most recent call last):
  File "/usr/bin/alacarte", line 36, in <module>
    main()
  File "/usr/bin/alacarte", line 32, in main
    app = MainWindow(datadir, version, sys.argv)
  File "/usr/lib/python2.5/site-packages/Alacarte/MainWindow.py", line
49, in __init__
    self.editor = MenuEditor()
  File "/usr/lib/python2.5/site-packages/Alacarte/MenuEditor.py", line
36, in __init__
    self.__loadMenus()
  File "/usr/lib/python2.5/site-packages/Alacarte/MenuEditor.py", line
46, in __loadMenus
    self.applications.dom =
xml.dom.minidom.parse(self.applications.path)
  File "/usr/lib/python2.5/site-packages/_xmlplus/dom/minidom.py",
line 1915, in parse
    return expatbuilder.parse(file)
  File "/usr/lib/python2.5/site-packages/_xmlplus/dom/
expatbuilder.py", line 926, in parse
    result = builder.parseFile(fp)
  File "/usr/lib/python2.5/site-packages/_xmlplus/dom/
expatbuilder.py", line 211, in parseFile
    parser.Parse("", True)
xml.parsers.expat.ExpatError: no element found: line 1, column 0[/quote]

结果上论坛上找了找解决办法,很幸运的找到了,原来是比较简单的,如下

在命令行自己的用户主菜单下首先到这个目录去cd .config/menus/然后删除这个目录下的所有文件rm -rf * 这样问题就顺利解决了,呵呵。

zz from [url]http://www.linuxdiyf.com/bbs/archiver/tid-73996.html[/url]

你可能感兴趣的:(ubuntu,职场,休闲,主菜单)