Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

px 0.9.0 - Windows: does not start as a background service anymore (openes a required console window) #203

Closed
marcOcram opened this issue Jan 26, 2024 · 3 comments

Comments

@marcOcram
Copy link

I just replaced 0.8.4 with 0.9.0 (using the same configuration file) and now px starts a console window on login which stays.

image

Tried a bit to fiddle with definining foreground=0 inside the configuration or directly via cli but the console window stays.

@genotrance
Copy link
Owner

Considering we have moved away from Nuitka for Windows thanks to #182 and many similar reports, the px.exe now being shipped is the same as the console pip binary. That takes us back to #72. Creating a GUI script which would not create the console window also prevents anything from being printed to stdout.

The way to solve this is to install px on Windows with .\pythonw -m px --install. That way, it runs in the background on startup. Note the .\ to make sure you use the local Python rather than a system Python elsewhere.

@genotrance
Copy link
Owner

Updated in v091.

@samba2
Copy link

samba2 commented Jun 3, 2024

just to add on, for scoop users, run the mentioned ".\pythonw..." command inside the "px" application dir of your scoop installation. On my PC this was: C:\Users\<username>\scoop\apps\px\current

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants