Linux|在CentOS 7创建qtcreator快捷方式

快捷方式加到桌面
依次到usr/share/applications这个目录下你会看到:
然后你想将哪个应用放到桌面然后Ctrl+c(复制)到桌面Ctrl+v(粘贴)就ok了。

CentOS 7 创建qtcreator快捷方式
在/usr/share/applications/文件夹下,用vim新建一个qtcreator.desktop的文件,文件内容如下,具体路径根据自己的实际情况而定:
[Desktop Entry]
Type=Application
Name=qtcreator
Exec=/home/firecat/Qt5.6.1/Tools/QtCreator/bin/qtcreator
GenericName=qtcreator
Comment=Qt development tools
Icon=/home/firecat/Qt5.6.1/5.6/gcc_64/doc/global/template/images/Qt-logo.png
Categories=Application; Development;
Terminal=false
这样在/usr/share/applications/ 文件夹下就能看到一个qtcreator的图标。然后将图标复制到桌面就可以了。

Qt V5.9.x会自动生成快捷方式了:
【Linux|在CentOS 7创建qtcreator快捷方式】[Desktop Entry]
Type=Application
Exec=/opt/Qt5.9.1/Tools/QtCreator/bin/qtcreator
Name=Qt Creator (Community)
GenericName=The IDE of choice for Qt development.
Icon=QtProject-qtcreator
StartupWMClass=qtcreator
Terminal=false
Categories=Development; IDE; Qt;
MimeType=text/x-c++src; text/x-c++hdr; text/x-xsrc; application/x-designer; application/vnd.qt.qmakeprofile; application/vnd.qt.xml.resource; text/x-qml; text/x-qt.qml; text/x-qt.qbs;

    推荐阅读