ubuntu 20.04在桌面左侧边栏添加QT creator快捷图标

从ubunut软件中心安装qtcreator是有桌面图标的,但是用命令安装.run没有快捷图标,

已亲自验证,写下过程,供大家借鉴:

1)原料:

./qt-opensource-linux-x64-5.12.5.run

 

2)路径:

cp  qtcreator.desktop /usr/share/applications/

 

注:[email protected]来自Qt/Qt5.12.5/Tools/QtCreator目录下搜索icon得到

Qt/Qt5.12.5/Tools/QtCreator/share/qtcreator/qbs/share/qbs/examples/cocoa-application/CocoaApplication/CocoaApplication.xcassets/AppIcon.appiconset

qtcreator.desktop具体内容:

[Desktop Entry]
Exec=/home/maggie/Qt5.12.5/Tools/QtCreator/bin/qtcreator
Icon=/home/maggie/Qt5.12.5/Tools/QtCreator/bin/[email protected]
Type=Application
Terminal=false
Name=Qt Creator
GenericName=Qt Creator
Categories=Qt;Development;IDE;

3)运行安装目录下的qtcreator

Qt/Qt5.12.5/Tools/QtCreator/bin/qtcreator

左边栏右键QT图标,添加到喜爱,即可

你可能感兴趣的:(qt,ubuntu)