您的位置:首页 > 其它

添加ubuntu桌面图标

2010-10-14 15:43 381 查看
以电子邮件客户端thunderbird为例:

今天在debian下安装了thunderbird。
  下载地址:http://www.mozilla.com/en-US/thunderbird/

  一、下载thunderbird-2.0.0.0.tar.gz到/home/lana/downloads
  >cd /home/lana/downloads
  >tar -xzf thunderbird-2.0.0.0.tar.gz

  解压后在/home/lana下产生thunderbird目录,进入该目录发现里没有configure文件,而且该目录下有一个thunderbird执行文件。可见thunderbird已经被编译过了。

  >./thunderbird
  执行提示出错:
  lanazou:/home/lana/downloads/thunderbird# ./thunderbird
  ./thunderbird-bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

  解决方法:
  apt-get install -u libstdc++5
  再执行./thunderbird就可以正常运行thunderbird

  二、都正常运行之后,在“应用程序”并没有出现thunderbird的快捷图标。

  到/usr/share/applications/下查找也没有thunderbird.desktop文件,所以“应用程序”就不会有thunderbird的图标了。

  解决方法:
  >cd /usr/share/applications
  >vi thunderbird.desktop

  在thunderbird.desktop中输入如下内容:
  [Desktop Entry]
  Name=Thunderbird
  Comment=Read/Write Mail/News with Mozilla Thunderbird
  Exec=/usr/bin/thunderbird
  Icon=/home/lana/downloads/thunderbird-2.0.0.0/icons/mozicon50.xpm
  Terminal=false
  Type=Application
  Categories=Application;Network;

  注意:里面的文件路径根据自己文件存放位置不同来写的。

  退出thunderbird.desktop,保存。再打开“应用程序”--“internet”就会发现thunderbird的图标,点击可以正常运行。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: