Adding app on gnome menu: Difference between revisions

From PedrosBrainDump
Created page with "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; * <code>Version</code>: (Optional) Specifies the version of the desktop entry format. * <code>Name</code>: The name of your application that will appear in the GNOME menu...."
 
No edit summary
 
Line 23: Line 23:
* <code>Type</code>: Should always be <code>Application</code> for an app.
* <code>Type</code>: Should always be <code>Application</code> for an app.
* <code>Categories</code>: Categories help categorize the app in the menu, such as <code>Utility</code>, <code>Development</code>, <code>Graphics</code>, etc. You can add multiple categories, separated by semicolons.
* <code>Categories</code>: Categories help categorize the app in the menu, such as <code>Utility</code>, <code>Development</code>, <code>Graphics</code>, etc. You can add multiple categories, separated by semicolons.


Reload gtk cache
Reload gtk cache
gtk-update-icon-cache
gtk-update-icon-cache

Latest revision as of 22:48, 6 November 2024

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