Launching a Script on the Linux Platform
Wildman
best_lay at yahoo.com
Tue Nov 12 13:06:00 EST 2019
What is the best approach for launching a Python GUI program
on a Linux platform. The program will be distributed in .deb
format. So the .deb will contain a menu file as well as a
.desktop file. The post install script will update the system
menu.
My question is how should the program be executed? Here are
two choices for the "command=" entry in the menu file...
command="/path/to/program.py"
In this case the hash-bang would have to be included in the
program script... #!/usr/bin/env python3
The other choice is this...
command="python3 /path/to/program.py"
(Of course, the Exec command in the .desktop file should match.)
Is one method better than the other or does it acutally matter?
--
<Wildman> GNU/Linux user #557453
"There are only 10 types of people in the world...
those who understand Binary and those who don't."
-Spike
More information about the Python-list
mailing list