zoukankan      html  css  js  c++  java
  • debian添加快捷启动方式

    1 [Desktop Entry] 
    2 Name=eclipse 
    3 Comment= Eclipse for PHP
    4 Exec=/home/xukun/eclipse/eclipse 
    5 Icon=/home/xukun/eclipse/icon.xpm
    6 Terminal=false
    7 Type=Application
    8 Categories=Application;Development;

    以上代码保存后,发现 左上角的 活动 应用程序里面已经有了,如果想添加到左侧的快速启动栏,就右键图标,添加到收藏夹就行了

    默认情况下,ubuntu会将自动安装的软件快捷方式保存在/usr/share/applications目录下,如果我们要创建桌面快捷方式,只需要右键-复制-桌面 就Ok,如图: 

    上面的方法是通过系统自动安装软件后实现的,有时候我们自己会从网上下载一些软件手动安装,那么,又该怎样创建软件的桌面快捷方式呢?这里以Eclipse 为例,首先到官网下载Eclipse软件包,直接解压在某个目录下,双击其中的eclipse文件,就可以启动eclipse了,不过如果每次要打开eclipse,都要从安装目录启动,是不是有些麻烦?依照下面的操作,来创建一个桌面快捷方式吧。

    1、创建一个文件,将下面的代码拷贝进去 
    这里我们只需要关注3个地方,分别为Exec=软件执行文件的路径,Icon=快捷方式图标(如果有的话),Name=快捷方式名称。根据自己软件按转的位置修改代码,保存之后关闭文件。 

     
    [Desktop Entry] 
    Categories=Development; 
    Comment[zh_CN]= 
    Comment= 
    Exec=/home/xukun/eclipse/eclipse 
    GenericName[zh_CN]=IDE 
    GenericName=IDE 
    Icon=/home/xukun/eclipse/icon.xpm 
    MimeType= 
    Name[zh_CN]=eclipse 
    Name=eclipse 
    Path= 
    StartupNotify=true 
    Terminal=false 
    Type=Application 
    X-DBUS-ServiceName= 
    X-DBUS-StartupType= 
    X-KDE-SubstituteUID=false 
    X-KDE-Username=xukun 


    2、将文件名修改为eclipse.desktop 

    3、给文件添加可执行权限
     
    可以通过chmod +x desktop文件 或者 直接右键权限里面修改。 

    4、将该文件复制到桌面 
    注:在ubuntu11.04之前的版本中,似乎有更简单的方法来创建桌面快捷方式:右键点击桌面-创建启动器,

    参考一下这篇文章末尾

    安装雷鸟邮件客户端

     今天在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的图标,点击可以正常运行。

  • 相关阅读:
    用perfmon简单分析GDI+性能和代码的一点小改进
    从clr profiler的角度看string concat 和stringbuilder的性能差别
    CLR兴趣小组第一次活动总结
    C#3.0看起来比较酷的咚咚
    windbg入门及提高(广告贴)
    济南.NET技术俱乐部8月份活动预告
    WebService安全性的问题
    Basic Windbg 4.Out Of Memory的分析及诊断方法
    A question about C++ static method and C# static method
    内存泄露的小问题
  • 原文地址:https://www.cnblogs.com/quinnxu/p/3108847.html
Copyright © 2011-2022 走看看