ubuntu12.04添加eclipse程序启动器



ubuntu12.04 dash home中每个图标对应/usr/share/applications当中的一个配置文件(文件名后缀为.desktop)。所以要在dash home中添加一个自定义程序启动器,需要在该文件目录下创建对应的配置文件。至于配置文件的语法,参考该目录下的配置文件即可明白。
 
以eclipse为例,方法如下。
系统:ubuntu12.04 beta2 i386
方法:
1. 在/usr/share/applications目录下创建eclipse启动器配置文件
 
cd /usr/share/applications
sudo gedit eclipse.desktop
2. 编辑eclipse.desktop并保存。简单的配置示例:
 
#!/usr/bin/env xdg-open
  www.2cto.com  
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Icon[zh_CN]=/home/xxx/Software/eclipse/icon.xpm
Name[zh_CN]=Eclipse
Exec=/home/xx/Software/eclipse/eclipse
Comment[zh_CN]=Eclipse
Name=Eclipse
Comment=Eclipse
Icon=/home/xxx/Software/eclipse/icon.xpm
 
这样eclipse启动器就添加到dash home中了:
 
ubuntu12.04 <wbr>添加eclipse程序启动器

 
 
作者 xiaobo

相关内容

    暂无相关文章