Skip to content

Possible bug fix for "Open with default app" on Windows#943

Merged
zanllp merged 1 commit into
zanllp:mainfrom
azurebluedawn:main
Mar 31, 2026
Merged

Possible bug fix for "Open with default app" on Windows#943
zanllp merged 1 commit into
zanllp:mainfrom
azurebluedawn:main

Conversation

@azurebluedawn

Copy link
Copy Markdown
Contributor

Working with the IIB extension in Forge WebUI locally on my Windows PC, I noticed a problem when using "Open with default app". Initially it works as expected: The Windows default Photo Viewer opens and lets me work with the image. However when I open another image, it is no longer possible to edit the image and trying to do so will result in error messages. Fortunately, the error does not persist and opening the file manually works fine.

I found that replacing the subprocess call with os.startfile gets rid of this behavior and everything seems to works as expected. I did not test whether the problem occurs with other default image viewers as well, but I still wanted to propose this solution.

@zanllp

zanllp commented Mar 31, 2026

Copy link
Copy Markdown
Owner

LGTM, merging.

@zanllp zanllp merged commit 06e72b0 into zanllp:main Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants