- 大多数通过第三方软件包安装的软件,一般是在
applications
是不具备启动方式的; - 这里通过安装最新的
firefox
来说明如何在application
里面创建启动方式;
配置环境:
操作系统: rhel7/centos7
软件版本:Firefox-latest-x86_64.tar.bz2
内核版本3.10.0-327.el7.x86_64
- firefox的安装
[root@my local]# tar xvf Firefox-latest-x86_64.tar.bz2
[root@my local]# useradd -d /usr/local/firefox/ firefox
[root@my local]# chown firefox.firefox /usr/local/firefox/ -R
尝试运行
./firefox
来查看运行状况
添加/usr/share/applications/firefox.desktop配置文件
配置文件的内容如下:
[Destktop Entry]
Name=firefox
Comment=firefox
TryExec=/usr/bin/firefox
Exec=/usr/bin/firefox
Icon=/usr/local/firefox/browser/icons/mozicon128.png
Terminal=false
Type=Application
Categories=Application
Encoding=UTF-8
StartupNotify=true
MimeType=application;
X-Desktop-File-Install-Version=0.22
- 查看通知栏存在一个没有图标显示的
firefox
快捷方式
- 配置文件按照上面,
firefox
是可以正常运行的; - 但是有一点小问题,对于图标的路径是按照Icon提供了,并且具有权限,但是图标显示是不正常;
- *