centos7如何快速启动应用程序?

centos7如何快速启动应用程序?一切不说版本的安装教程都是耍流氓TT
系统:CentOS 7

centos7如何快速启动应用程序?


桌面系统版本:gnome 3.14
centos7如何快速启动应用程序?


方法一:快捷方式
首先肯定会想到类比windows的桌面快捷方式 , 然后就会开始google一大堆教程
Create Launcher
右击Desktop , 点击“Create Launcher” 。
教程链接
【centos7如何快速启动应用程序?】但是 , 一切不说版本的安装教程都是耍流氓TT
是的 , 老人家并没有出现“Create Launcher”这个选项 。
所以 , 这条路走不通 。
修改.desktop文件
1.终端输入:sudo vim /usr/share/applications/datagrip.desktop
编辑.desktop文件
centos7如何快速启动应用程序?


Exec , Icon要修改为datagrip的安装路径
centos7如何快速启动应用程序?


2.然后给该文件赋权 ,运行“chmod u x eclipse.desktop“命令即可 。
这点也很重要!!!必须是可执行文件 。
说明我这个是解压安装的 , 如果是用deb包安装的话(/usr/share/applications/就有datagrip.desktop , 我没安装过 , 不知道是否是这个名字) , 步骤1 , 2都可以省略
3.把文件拷贝到桌面目录即可 。
centos7如何快速启动应用程序?


方法二:直接在终端启动
最推荐的方法:简单 , 快捷 , 方便
方法步骤
直接在终端输入指令:
centos7如何快速启动应用程序?


再输入命令
rehash
假如没有更新hash表的话 , 当前终端保存的是之前的hash表 , 该软连接对当前的终端不生效 。
官方的解释是如下 ,
Typically, compinit will not automatically find new executables in the $PATH. For example, after you install a new package, the files in /usr/bin would not be immediately or automatically included in the completion. Thus, to have these new exectuables included, one would run: rehash
就会发现建立软链接成功
centos7如何快速启动应用程序?


从此以后 , 就可以直接在终端输入datagrip , 来启动datagrip了 。

    推荐阅读