Skip to content
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

Fix for HeidiSQL from WSL #28

Open
sward-hg opened this issue Jun 13, 2019 · 0 comments
Open

Fix for HeidiSQL from WSL #28

sward-hg opened this issue Jun 13, 2019 · 0 comments

Comments

@sward-hg
Copy link

I'm using Terminus from WSL using Pengwin. While trying to get Pancakes to open HeidiSQL, I ran into two problems:

  1. PHP cannot access the mounted C drive, so file_exists() always returns false. I hacked around this by setting the conditional on line 51 of src/App/HeidiSqlApp.php to always return true. This only worked because the first candidate (\Program Files\HeidiSQL\heidisql.exe) is the correct location in my case.
  2. The "start" command was not recognized. I hacked around this by adding "cmd.exe /c " in front of "start /b" on line 26 of src/App/HeidiSqlApp.php.

Once I'd made those adjustments, the plugin worked like a charm. Hopefully someone can come up with less hacky solutions. In the mean time, maybe this will save others with similar setups some trouble.

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

No branches or pull requests

1 participant