Repository navigation
Description
Description
In a WSL(Windows Subsystem for Linux) exclusively available on Windows 10, running github CLI command fail to start Github Desktop.
Version
- GitHub Desktop:
Version 1.2.3
- Operating system:
Microsoft Windows [Version 10.0.17134.112]
WSL enabled with Ubuntu 18.04
Steps to Reproduce
- Install WSL on a Windows 10 system by following Microsoft's Guide, Ubuntu 18.04 is installed for example.
- Install Github Desktop.
- Start
bash,wslfrom Start Menu, or start from your installed Linux distro appubuntu - Run
githuband you can observe the error message
Expected Behavior
By running github in WSL should the application start as expected as it does in cmd, PowerShell and Git bash on Windows 10.
Actual Behavior
The application won't start and a script error is printed.
sh: 0: Can't open /mnt/d/bob/AppData/Local/GitHubDesktop/bin/..\app-1.2.3\resources\app\static\github.sh
Additional Information
As @shiftkey suggested, this script which do start the application properly in Git Bash, cmd and PowerShell on Windows 10, should be modified to cover WSL.
If it is caused by unexpected behavior from WSL, we might need to check WSL Github.
Since WSL keeps adding more Linux distro, they should be considered as well.
And regarding to #4641, WSL will be added to supported shell options, so this issue should be fixed by then so Github Desktop can start and be started from WSL.
Activity
minonl commentedon Jun 22, 2018
I've some time to look into this 😃
And the real path to `github.sh is:
which successfully start the app, so actually earlier
/mnt/d/joe5y/AppData/Local/GitHubDesktop/bin/githubwhich compose the path herethat offered a wrong folder path(
echo $DIR):@shiftkey If I
m right, the code to generate
/mnt/d/joe5y/AppData/Local/GitHubDesktop/bin/githubneed minor update.shiftkey commentedon Jun 22, 2018
@minvedacat probably - I had a look at the VSCode script and it seems to do some WSL-specific checks. We should do the same.
shiftkey commentedon Aug 27, 2018
Switching this back to
help-wantedbecause I don't have the bandwidth currently to do this - you can see what I did in #5111 which I think was on the right track, if someone with WSL experience wants to help wrap it up.shawnfunke commentedon Jan 2, 2020
I will take a look at this
Merge pull request #8863 from shawnfunke/wsl-cli-fix