美文网首页
CentOS添加快捷方式

CentOS添加快捷方式

作者: 雲凌禹 | 来源:发表于2017-05-28 14:46 被阅读0次

以一款golang开发的IDE jetbrains-goglang为例。
安装路径/usr/local/jetbrains_goglang-171
如果不做快捷方式的话,每次启动的时候需要执行/bin/.gogland.sh启动。
现在添加快捷方式:
在/usr/share/application目录新建一个文件比如 gogland.desktop,使用vim编辑并添加如下内容:

[Desktop Entry]
Encoding=utf-8
Name=JetBrains-Goglang
Comment=Goglang IDE
Exec=/usr/local/jetbrains_goglang-171/bin/gogland.sh
Icon=/usr/local/jetbrains_goglang-171/bin/gogland.png
Terminal=false
StartipNotify=true
Type=Application
Categories=Application;Development;

改变该文件的权限

chmod a+x gogland.desktop

这个时候就可以在开始菜单的编程项目中看到设置的Gogland IDE快捷方式了。

相关文章

网友评论

      本文标题:CentOS添加快捷方式

      本文链接:https://www.haomeiwen.com/subject/mhkhfxtx.html