解决Linux安装QtCreator没有桌面图标

创建桌面图标

touch Qt-Creator.desktop

编辑Qt-Creator.desktop内容:

[Desktop Entry]

Name=Qt Creator

Version=1.0

Exec=/home/cslz/Qt/Tools/QtCreator/bin/qtcreator %U

Comment=QtCreator

Icon=/home/cslz/Qt/Docs/Qt-5.12.12/qtgui/images/used-in-examples/hellovulkantexture/qt256.png

Type=Application

Terminal=false

StartupNotify=true

Encoding=UTF-8

Categories=TextEditor;

MimeType=text/plain;text/html;text/x-php;text/x-c;text/x-shellscript;

TryExec=/home/cslz/Qt/Tools/QtCreator/bin/qtcreator

X-DDE-FileManager-MenuTypes=SingleFile

修改文件权限

chmod 755 Qt-Creator.desktop

保存后,拷贝到/usr/share/applications

sudo cp Qt-Creator.desktop /usr/share/applications

你可能感兴趣的:(linux)