Skip to content

Conversation

@DealsBeam
Copy link

The _query_autostart method failed to detect the autostart status on Windows when running in a development (non-packaged) environment.

The check was looking for a quoted application path in the registry, but in development, the entry is an unquoted script path passed as an argument to the Python interpreter.

This commit modifies the check to use the unquoted path when the application is not packaged, ensuring correct detection. A new unit test is included to validate this fix.

The `_query_autostart` method failed to detect the autostart
status on Windows when running in a development (non-packaged)
environment.

The check was looking for a quoted application path in the registry,
but in development, the entry is an unquoted script path passed as an
argument to the Python interpreter.

This commit modifies the check to use the unquoted path when the
application is not packaged, ensuring correct detection. A new unit
test is included to validate this fix.
@DevilXD
Copy link
Owner

DevilXD commented Nov 1, 2025

Hello,

Not sure how you were testing that, but this is what I get from the current master branch:

obraz

I'm pretty sure that's correct already. Moreover, a check like this would have to modify _get_self_path instead of adding if statements like that.

SELF_PATH is already managed to always correctly point towards either main.py or the packaged executable, and the only check needed, is to use pythonw when running from source, and the executable otherwise.

@DevilXD DevilXD added the Fix This fixes an existing issue or error label Nov 1, 2025
@DevilXD
Copy link
Owner

DevilXD commented Dec 5, 2025

Well, since my findings point at there not being an error after all, and a lack of further input, I guess this one can be closed.

@DevilXD DevilXD closed this Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Fix This fixes an existing issue or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants