Created
June 5, 2026 21:08
-
-
Save xing5/47539e3a415e30a86cdc248b2556d6da to your computer and use it in GitHub Desktop.
Install GitHub Copilot App in WSL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install GitHub Copilot AppImage in WSL | |
| This guide installs the GitHub Copilot Linux AppImage inside WSL and avoids the common AppImage FUSE issue on Ubuntu 24.04. | |
| ## Prerequisites | |
| - WSL2 with WSLg enabled | |
| - The AppImage downloaded on Windows, for example: | |
| ```bash | |
| /mnt/c/Users/<windows-user>/Downloads/GitHub-Copilot-linux-x64.AppImage | |
| ``` | |
| ## Install | |
| Set the path to your downloaded AppImage: | |
| ```bash | |
| APPIMAGE="/mnt/c/Users/<windows-user>/Downloads/GitHub-Copilot-linux-x64.AppImage" | |
| INSTALL_DIR="$HOME/.local/opt/github-copilot" | |
| ``` | |
| Create install directories and copy the AppImage: | |
| ```bash | |
| mkdir -p "$INSTALL_DIR" "$HOME/.local/bin" "$HOME/.local/share/applications" "$HOME/.local/share/icons/hicolor/512x512/apps" | |
| cp "$APPIMAGE" "$INSTALL_DIR/GitHub-Copilot.AppImage" | |
| chmod +x "$INSTALL_DIR/GitHub-Copilot.AppImage" | |
| ``` | |
| Extract the AppImage: | |
| ```bash | |
| TMP_DIR="$(mktemp -d)" | |
| cd "$TMP_DIR" | |
| "$INSTALL_DIR/GitHub-Copilot.AppImage" --appimage-extract | |
| rm -rf "$INSTALL_DIR/app" | |
| mv squashfs-root "$INSTALL_DIR/app" | |
| rm "$INSTALL_DIR/GitHub-Copilot.AppImage" | |
| ``` | |
| Create the command wrapper: | |
| ```bash | |
| tee "$HOME/.local/bin/github-copilot" >/dev/null <<'EOF' | |
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| exec "$HOME/.local/opt/github-copilot/app/AppRun" "$@" | |
| EOF | |
| chmod +x "$HOME/.local/bin/github-copilot" | |
| ``` | |
| Install the icon and desktop launcher: | |
| ```bash | |
| cp "$INSTALL_DIR/app/usr/lib/GitHub Copilot/icons/icon.png" \ | |
| "$HOME/.local/share/icons/hicolor/512x512/apps/github-copilot.png" | |
| tee "$HOME/.local/share/applications/github-copilot.desktop" >/dev/null <<EOF | |
| [Desktop Entry] | |
| Type=Application | |
| Name=GitHub Copilot | |
| Comment=Tauri Copilot Application | |
| Exec=$HOME/.local/bin/github-copilot %u | |
| Icon=github-copilot | |
| Terminal=false | |
| StartupWMClass=github | |
| Categories=Development; | |
| MimeType=x-scheme-handler/github-app;x-scheme-handler/ghapp;x-scheme-handler/gh; | |
| EOF | |
| ``` | |
| Refresh desktop metadata: | |
| ```bash | |
| update-desktop-database "$HOME/.local/share/applications" 2>/dev/null || true | |
| gtk-update-icon-cache -q "$HOME/.local/share/icons/hicolor" 2>/dev/null || true | |
| ``` | |
| ## Run | |
| ```bash | |
| github-copilot | |
| ``` | |
| You can also open **GitHub Copilot** from the WSLg app menu. | |
| ## Notes | |
| - Replace `<windows-user>` with your Windows username. | |
| - Make sure `~/.local/bin` is on your `PATH`. | |
| - This extraction method does not require `sudo` or `libfuse2`. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment