Title: Windows WSL/MSYS path issues (fixes pr#127) · Issue #129 · coder/sshcode · GitHub
Open Graph Title: Windows WSL/MSYS path issues (fixes pr#127) · Issue #129 · coder/sshcode
X Title: Windows WSL/MSYS path issues (fixes pr#127) · Issue #129 · coder/sshcode
Description: I have narrowed down my error for to specifcally this msysPath = "/c/'Program Files (x86)'/Google/Chrome/Application/chrome.exe" (x86) It seems to thing that it is trying to leave exec.Command() by using the ) from (x86) func openBrowser...
Open Graph Description: I have narrowed down my error for to specifcally this msysPath = "/c/'Program Files (x86)'/Google/Chrome/Application/chrome.exe" (x86) It seems to thing that it is trying to leave exec.Command() by...
X Description: I have narrowed down my error for to specifcally this msysPath = "/c/'Program Files (x86)'/Google/Chrome/Application/chrome.exe" (x86) It seems to thing that it is trying to leave...
Opengraph URL: https://github.com/coder/sshcode/issues/129
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Windows WSL/MSYS path issues (fixes pr#127)","articleBody":"I have narrowed down my error for to specifcally this\r\n`msysPath = \"/c/'Program Files (x86)'/Google/Chrome/Application/chrome.exe\"`\r\n`(x86)`\r\nIt seems to thing that it is trying to leave `exec.Command()` by using the `)` from `(x86)`\r\n```go\r\nfunc openBrowser(url string) {\r\n var openCmd *exec.Cmd\r\n\r\n const (\r\n macPath = \"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome\"\r\n wslPath = \"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe\"\r\n msysPath = \"/c/'Program Files (x86)'/Google/Chrome/Application/chrome.exe\"\r\n )\r\n\r\n switch {\r\n case commandExists(\"google-chrome\"):\r\n openCmd = exec.Command(\"google-chrome\", chromeOptions(url)...)\r\n case commandExists(\"google-chrome-stable\"):\r\n openCmd = exec.Command(\"google-chrome-stable\", chromeOptions(url)...)\r\n case commandExists(\"chromium\"):\r\n openCmd = exec.Command(\"chromium\", chromeOptions(url)...)\r\n case commandExists(\"chromium-browser\"):\r\n openCmd = exec.Command(\"chromium-browser\", chromeOptions(url)...)\r\n case pathExists(macPath):\r\n openCmd = exec.Command(macPath, chromeOptions(url)...)\r\n case pathExists(wslPath):\r\n openCmd = exec.Command(wslPath, chromeOptions(url)...)\r\n case pathExists(msysPath):\r\n openCmd = exec.Command(msysPath, chromeOptions(url)...)\r\n default:\r\n err := browser.OpenURL(url)\r\n if err != nil {\r\n flog.Error(\"failed to open browser: %v\", err)\r\n }\r\n return\r\n }\r\n}\r\n```\r\n\r\nthe most annoying thing is, I KNOW THE DAMNED ERROR, I dont know how to fracking FIX IT!\r\nTHis is what is holding back #127 from being pushed to mainstream","author":{"url":"https://github.com/Merith-TK","@type":"Person","name":"Merith-TK"},"datePublished":"2019-07-30T02:21:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/129/sshcode/issues/129"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:30440d66-a742-3f2b-c959-46581abeff3a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C3A6:8BCE9:484B00:63237F:696A22DF |
| html-safe-nonce | 8b366b686fac800b5b0cd6fbb720689668db624a04c3944021adc998ac3dc4b3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDM0E2OjhCQ0U5OjQ4NEIwMDo2MzIzN0Y6Njk2QTIyREYiLCJ2aXNpdG9yX2lkIjoiNzY2NDEyNzkzMTgyMjI1Mjc2OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 14333f7f1e679307be5223bbfb3b2ff71694c4dcfc7f5a1ad8dba29079b48bc5 |
| hovercard-subject-tag | issue:474337541 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/sshcode/129/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5a7a4d78abe3de7668296cbe469157c4ee4d4e006c09758b5cc03eccba851b68/coder/sshcode/issues/129 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5a7a4d78abe3de7668296cbe469157c4ee4d4e006c09758b5cc03eccba851b68/coder/sshcode/issues/129 |
| og:image:alt | I have narrowed down my error for to specifcally this msysPath = "/c/'Program Files (x86)'/Google/Chrome/Application/chrome.exe" (x86) It seems to thing that it is trying to leave exec.Command() by... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Merith-TK |
| hostname | github.com |
| expected-hostname | github.com |
| None | 014f3d193f36b7d393f88ca22d06fbacd370800b40a547c1ea67291e02dc8ea3 |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/sshcode git https://github.com/coder/sshcode.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 182143383 |
| octolytics-dimension-repository_nwo | coder/sshcode |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 182143383 |
| octolytics-dimension-repository_network_root_nwo | coder/sshcode |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d515f6f09fa57a93bf90355cb894eb84ca4f458f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width