The presence of the Python package for installing shortcuts in the Start menu

I am making a Python package that installs with a file setup.pyusing setuptools.

The package includes a graphical interface, and when it is installed on a computer running Windows, I want the installation to create a folder in the "Programs" in the "Start" menu and create a shortcut for the pywscript that will launch the graphical interface. ( pywI think it works on all platforms, right?)

On Mac and Linux, I would like this shortcut to fit on all Macs and Linux that are parallel to the Start menu.

How to do it?

+5
source share
4 answers

Linux- .pyw ( , ). , python ( perl, bash ..) script Linux , "" "#!/Usr/bin/python". #! , script, , .

, freedesktop.org , Linux. , , , - " " , .

+2

InnoSetup shorcuts Windows. .

innosetup:

UninstallDisplayIcon={app}\myico.ico
[Icons]
Name: "{group}\MyPrograms"; Filename: "{app}\miexe.exe" ;WorkingDir: "{app}"; Comment: "miexe program"

Mac Linux

+1

See how the post-install script for pywin32 does this (shortcut search). Not sure about Mac / Linux.

0
source

Since setuptools does not seem to provide an easy solution to this, I decided to abandon this idea until I let go of my application with py2exe / InnoSetup.

0
source

All Articles