add desktop in ubuntu - Serbipunk/notes GitHub Wiki

common location: /usr/share/applications

[Desktop Entry]
Comment=Eclipse
Terminal=false
Name=Eclipse
Exec=/path/to/your/version/eclipse/eclipse
Type=Application
Icon=/path/to/your/version/eclipse/icon.xpm
StartupWMClass=Eclipse
[Desktop Entry]
Comment=pycharm
Terminal=false
Name=pycharm
Exec=/home/bai/tool/pycharm-2022.3.1/bin/pycharm.sh
Type=Application
Icon=/home/bai/tool/pycharm-2022.3.1/bin/pycharm.svg
StartupWMClass=pycharm

https://askubuntu.com/questions/1082340/how-to-add-eclipse-to-favorites