The Steps
Open terminal or console linux and type code below
sudo gedit /usr/share/applications/application_name.desktop
Notes:
application_name
: The application that we show in Application Menu.gedit
: Text editor like nano/vi.
Add Config to the text editor:
[Desktop Entry] Encoding=UTF-8 Exec=/home/helmiz/tools/eclipse/eclipse Icon=/home/helmiz/tools/eclipse/icon.xpm Type=Application Terminal=false Comment=Eclipse Integrated Development Environment Name=Eclipse 2019 GenericName=eclipse-2019-12-R StartupNotify=false Categories=Development;IDE;Java;
Notes:
Exec
: Path file where our application saved.Icon
: Path file where our application icon saved.Name
: Name of our application.GenericName
: Name of our application with version.Comment
: Description of our application.
Save and quit the text editor application.
Application will show in Application Menu. If it does not show, check again in the path file and icon file section.
Addition
(OPTIONAL) We can add website link in Application menu too with this code below:
[Desktop Entry] Version=1.0 Type=Application Terminal=false Exec=google-chrome http://google.com or xdg-open http://www.example.com/ Name=type the name of the shortcut Icon=/path/to/your/photo or name of icon at /usr/share/icon Categories=
You can search other categories in askubuntu.com.
Bibliography
- jahid_0903014. 2014. Install latest eclipse in linux mint (accessed on 5 January 2020).