This is the preferred way to fully integrate an application into the desktop.
The desktop provides a tool, dtappintegrate, that creates links between the registration package files and the directories on the desktop search path.
Desktop registration is explained in Chapter 5, Registering an Application.