You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2023/01/18 13:45:07 INFO [main] Hetty (v0.7.0) is running on :8080 ...
2023/01/18 13:45:07 INFO [main] Get started at http://localhost:8080
2023/01/18 13:45:07 INFO [main] Chrome executable not found.
To Reproduce
Steps to reproduce the behavior:
Using WSL Ubuntu 22
Installed hetty with snap
Installed chrome by downloading official .deb package from google, then
CHROME_EXECUTABLE=/usr/bin/google-chrome was defined after installing
/usr/bin/google-chrome was added to path after installing
Error:
INFO [main] Chrome executable not found
Expected behavior
Chrome executable should be launched with hetty
Screenshots
Desktop (please complete the following information):
OS: WSL 22 LTS on Windows 11
Kernel: 5.15.79.1-microsoft-standard-WSL2 (amd64)
Browser: Google Chrome Version 109.0.5414.74
Snap Version 2.57.5+22.04ubuntu0.1
Hetty Version 0.7.0
Additional context
Even before I tried adding CHROME_EXECUTABLE and adding /usr/bin/google-chrome to path manually, no success
The text was updated successfully, but these errors were encountered:
binbard
changed the title
Chrome executable not found - even when $CHROME_EXECUTABLE defined and google-chrome is in path
Chrome executable not found even when $CHROME_EXECUTABLE defined and google-chrome is in path
Jan 18, 2023
At the moment, Hetty relies on the default executable finding logic in the chromedp package (ref).
When using WSL, I suspect that when this code is executed, it's only looking for known executable paths for windows, and /usr/bin/google-chrome is not checked/used.
As a workaround, a possible fix might be to create a symlink chrome somewhere in a directory that's in your $PATH, and point it to /usr/bin/google-chrome.
In a future version of Hetty I might support explicitly setting the chrome executable path, but for now please look into the workaround mentioned above.
im getting the same thing on kali linuc, what should i do?
I suggest creating a symlink from /usr/local/bin/chrome to the executable path of your Chrome installation (the path differs per distro/system, so you best find out yourself).
Describe the bug
2023/01/18 13:45:07 INFO [main] Hetty (v0.7.0) is running on :8080 ...
2023/01/18 13:45:07 INFO [main] Get started at http://localhost:8080
2023/01/18 13:45:07 INFO [main] Chrome executable not found.
To Reproduce
Steps to reproduce the behavior:
Error:
INFO [main] Chrome executable not found
Expected behavior
Chrome executable should be launched with hetty
Screenshots
Desktop (please complete the following information):
Additional context
Even before I tried adding CHROME_EXECUTABLE and adding /usr/bin/google-chrome to path manually, no success
The text was updated successfully, but these errors were encountered: