I am creating an GTK3 python application for Ubuntu. At the moment the application installs in the following locations.
In /opt/NSTrain folder where NSTrain is the name of my application. The NSTrain folder has the executable .py files, its icons, gui files and other library files. It also installs a .desktop file to /usr/share/applications folder.
Here are the contents of my .desktop file,
[Desktop Entry] Name=NSTrain X-GNOME-FullName=NSTrain Comment=Train Scheduler Application Categories=GNOME;Utility; Exec=/opt/NSTrain/nstrain.py Icon=/opt/NSTrain/app-icon.png Terminal=false Type=Application
I see my application in the application lens with the appropriate icon. However when I click it, nothing happens. The nstrain.py file is executable and works fine when I execute it from the terminal using
What is the issue here?