-
-
Notifications
You must be signed in to change notification settings - Fork 2k
PyQt5 setApplicationName() has no effect on PyInstaller-made executable #5409
Description
Description of the issue
I've got an app using PyQt5 and various modules, including QtWebEngineCore, and using PyInstaller to bundle it into executables for Windows and Mac based on a .spec file.
The main body of the code includes a call to QApplication.setApplicationName() which, according to the documentation, should tell Windows and MacOS what name to display for the application. For example, QApplication.setApplicationName("My Program")
On Windows, both this call and the name in the spec file are ignored, and on the Windows taskbar, it is identified as "MyProgram.exe". Other programs on the taskbar don't get identified with the file extension.
On MacOS it's worse- the menu bar for the application will display as QtWebEngineCore instead of MyProgram. I don't know why this one module would be pushing its name onto the menu bar?
Context information (for bug reports)
PyCharm 2020
Python 3.7
PyInstaller 4.1
Please let me know if other information would be useful.