As personal exercise I developed python application with name Hades which
- on regular bases do some changes on Windows 10 desktop
- compiled into .exe with cx_Freeze
- finally located on network drive E:\ (it is sensible for further story)
- successfully starts (from E:...) by shortcut(.lnk) on desktop
Usual usage: after login I start app by shortcut and it does some changes on desktop.
As next step of this project I decided to start app automatically on login. Pick up approach #2 from here(How to start a python file while Windows starts?):
- to the registry folder HKCU\Software\Microsoft\Windows\CurrentVersion\Run
- added entry Hades = "E:!Soft!RanD\20220808 - My desktop style\Hades.v.0.3\build\exe.win-amd64-3.10\main.exe"
- on login app starts with error, see screenshot
What is confusing me, that on error screen I see path to C:\ drive location, where project was located initially - it is standard folder for PyCharm projects. Event when I changed registry entry to following values
- "c:\Users\kapustin.av\PycharmProjects\Hades.v.0.3\build\exe.win-amd64-3.10\main.exe"
- "c:\Temp\Hades.v.0.3\build\exe.win-amd64-3.10\main.exe"
then I had the same issue on Windows re-login; of course app and related folders were available on declared paths.
On the bottom of error message dialog it is mention log.txt file. It is file created by me in python code. In code (around log.txt as well) there is no direct path to C:... And also I did tests when file existed on C:... path during login. Howerer the message is still the same.
Would it be related to cx_Freeze specific ? Any idea, please, in which direction look forward for resolving the case ?