"Core" application-specific files (those that are not related to registering the application with the Desktop or displaying it in the user interface prior to launching) reside in a dedicated "application directory."
The application directory contains:
The main Python file
Any other application-specific files your code may need, such as other Python files or your Glade user interface description file(s)
The application directory is a subdirectory of:
/usr/share
In the example explained here, the application's directory is named pyglade, as follows;
/usr/share/pyglade
For the sample application considered in this wiki page, this directory contains the following:
main.py -- the main Python file
pygladeui.glade -- the Glade user interface description file
Now, let's take a tour of the actual files, starting with the critical .desktop file.