-
Notifications
You must be signed in to change notification settings - Fork 43
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
Getting no executable front-end (browser) '/Applications/Google'
#82
Comments
I see that the
Let me know if this works. If not, I'll boot up my Mac and try myself. We probably should also add quotes around the result of |
This seems to have worked diff --git a/lws-term/server.c b/lws-term/server.c
index 415df5a..c9594b6 100644
--- a/lws-term/server.c
+++ b/lws-term/server.c
@@ -497,10 +497,11 @@ chrome_command(bool app_mode)
if (cbin != NULL)
return cbin;
#if __APPLE__
+#define CHROME_EXE "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
// FIXME - better to open -a "Google Chrome" OR open -b com.google.Chrome
char *chromeMac = "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome";
if (access(chromeMac, X_OK) == 0)
- return chromeMac;
+ return "'" CHROME_EXE "'";
#endif
cbin = ""; // cache as "not found"
return NULL; Another issue that came right after is that it seems that if Chrome is already running, it only brings it to focus. |
Fixes GitHub issue #82 (Getting `no executable front-end (browser) '/Applications/Google'`).
I made some changes to how But note issue #83. |
I can confirm that it works as expected now although, there is still the issue of having to close chrome entirely for it to work. |
A possible (experimental) alternative is using Webview. Add I don't think it's quite usable yet - but it doesn't have the problem noted in issue #83. Known annoyances is that it doesn't do menus in the proper Mac way (that may take a while to fix); copy/paste don't work as they should (I'm looking into a solution); the File/Quit menu item doesn't work; the default font causes problems with the Let me know if this approach is worth pursuing. |
Considering the many different things that require fixing I think the more pragmatic choice for me would be to simply load DomTerm in Firefox. Perhaps future versions of Chromium will fix this |
I checked in a workaround/fix for issue #83. That should make Qt and Electron much more usable. |
Running on macOS there seems to be some whitespace handling issue.
I see that
server.c
does include a reference to the correct path:/Applications/Google Chrome.app/Contents/MacOS/Google Chrome
But I guess somewhere down the line the spaces break things.
I tried setting
CHROME_BIN
env var, but it doesn't seem like it did anythingThe text was updated successfully, but these errors were encountered: