Am 23.11.21 um 21:44 schrieb Ulli Horlacher: > When I compile a python program with pyinstaller, I get an executable: > > pyinstaller --onefile --icon fex.ico fextasy.py > > But the executables icon is only visable within the windows file browser, > not on the desktop: > > https://fex.flupp.org/fop/V2ioMZcl/X-20211123213712.png >
I had to postprocess the exe with resourcehacker freeware: http://angusj.com/resourcehacker/ "C:\Program Files (x86)\Resource Hacker\ResourceHacker.exe" -open skydiaA.exe -save skydia.exe -action addskip -res Mainicon.ico -mask ICONGROUP,MAINICON, creates skydia.exe with the "wish icon". skydiaA.exe has the default icon. HTH Frank -- https://mail.python.org/mailman/listinfo/python-list