Adding app on gnome menu
create myapp.desktop file
nano ~/.local/share/applications/myapp.desktop
Write all the configurations
[Desktop Entry] Version=1.0 Name=MyApp Comment=This is my custom app Exec=/path/to/your/binary Icon=/path/to/your/icon.png Terminal=false Type=Application Categories=Utility;Application;
Version
: (Optional) Specifies the version of the desktop entry format.Name
: The name of your application that will appear in the GNOME menu.Comment
: A short description of your app.Exec
: The command that will run your application. Use the full path to your binary or executable.Icon
: The path to your application’s icon file.Terminal
: Whether or not to open the app in a terminal (false
for GUI apps).Type
: Should always beApplication
for an app.Categories
: Categories help categorize the app in the menu, such asUtility
,Development
,Graphics
, etc. You can add multiple categories, separated by semicolons.
Reload gtk cache
gtk-update-icon-cache