Adding app on gnome menu

From PedrosBrainDump
Revision as of 22:48, 6 November 2024 by 413vhcu1lq0463ob (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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 be Application for an app.
  • Categories: Categories help categorize the app in the menu, such as Utility, Development, Graphics, etc. You can add multiple categories, separated by semicolons.

Reload gtk cache

gtk-update-icon-cache