Skip to content

[Wine] The application does not load unless --default-browser is manually passed #523

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

Closed
3 tasks done
qwertychouskie opened this issue Mar 3, 2025 · 7 comments
Closed
3 tasks done
Assignees
Labels
bug Something isn't working question Further information is required Stale

Comments

@qwertychouskie
Copy link

qwertychouskie commented Mar 3, 2025

Quick Checks

  • I have read the help post
  • I have searched other issues, looking for an issue similar to mine
  • I have made sure my application/script runs before trying to package

Describe the bug

When running in Wine, the application does not load unless --default-browser is manually passed

To Reproduce

Steps to reproduce the behavior (install dependencies, do this in the auto-py-to-exe UI):

  1. Install auto-py-to-exe in Wine
  2. Run
  3. See error:
Application could not be started, or no application associated with the specifie
d file.
ShellExecuteEx failed: File not found.

Expected behavior

It should auto fall-back to the default browser without having to manually pass the --default-browser flag

Your Environment:

  • Wine version (wine --version): wine-10.2 (Staging)
  • Python version (python --version): 3.13.2
  • auto-py-to-exe version (pip show auto-py-to-exe): 2.46.0
  • PyInstaller version (pip show pyinstaller): 6.12.0
  • Eel version (pip show eel): 0.18.1
@qwertychouskie qwertychouskie added the bug Something isn't working label Mar 3, 2025
Copy link

github-actions bot commented Mar 3, 2025

👋 Hi, just a reminder that if you haven't read the help post yet, give it a read to see if your issue is covered in it and make sure to follow the debugging section.

Also please note, as stated in the README, if your issue is only associated with your application and not auto-py-to-exe itself, please do not create an issue in this repository - instead, comment on the help post, video or create a new discussion.

@brentvollebregt
Copy link
Owner

Apologies for the delay. What I think is happening here is that Chrome has been found on your machine, but then wine is trying to run the Linux binary.

If you execute the following, what does it return?

from eel import chrome
chrome.find_path()

@mostypc123
Copy link
Contributor

@brentvollebregt i will try to fix this in a pr soon

@brentvollebregt
Copy link
Owner

I'm keen to first understand how we can tell whether the path from chrome.find_path() is usable or not. Our function __can_use_chrome in /auto_py_to_exe/ui.py can then be updated to handle this case.

@brentvollebregt
Copy link
Owner

@qwertychouskie if you try out the bugfix/523-dont-run-chrome-by-default-in-wine branch in this repo, does it fix your issue? I haven't got Wine setup at the moment so cannot test.

@brentvollebregt brentvollebregt added the question Further information is required label Mar 22, 2025
Copy link

This issue is stale because it has been open for 60 days with no activity. Remove stale label or comment on this issue or it will be closed in 5 days.

@github-actions github-actions bot added the Stale label Apr 21, 2025
Copy link

Closing issue due to no activity in more than 60 days.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is required Stale
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants