Skip to content

Commit

Permalink
Merge pull request #135 from WhitewaterFoundry/development
Browse files Browse the repository at this point in the history
Check if WSLg was disabled via pengwin-setup
  • Loading branch information
crramirez committed Nov 12, 2022
2 parents cf3acee + e19ae9a commit 76e2ab4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion os-release
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ HOME_URL="https://github.com/whitewaterfoundry/Pengwin"
SUPPORT_URL="https://github.com/WhitewaterFoundry/Pengwin/issues"
BUG_REPORT_URL="https://github.com/WhitewaterFoundry/Pengwin/issues"
VERSION_CODENAME=bullseye
PENGWIN_VERSION="22.10.1"
PENGWIN_VERSION="22.11.0"
8 changes: 4 additions & 4 deletions profile.d/00-pengwin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ setup_display() {

# WSL2 Environment variable meaning:
# WSL2=0: WSL1
# WSL2=1: WSL2 (Type 1)
# WSL2=2: WSL2 (Type 2)
# WSL2=3: WSL2 (Type 3)
# WSL2=1: WSL2 (Type 1) using the IP of resolv.conf
# WSL2=2: WSL2 (Type 2) using the IP of the gateway (host IP)
# WSL2=3: WSL2 (Type 3) using the DISPLAY variable already set WSLg?
if [ -n "${WSL_INTEROP}" ]; then
if [ -n "${DISPLAY}" ]; then #WSLg
if [ -n "${DISPLAY}" ] && [ ! -f "${HOME}/.config/pengwin/disable_wslg" ]; then #WSLg
# check if the type is changed
sudo /usr/local/bin/wsl_change_checker 3
#Export an environment variable for helping other processes
Expand Down

0 comments on commit 76e2ab4

Please sign in to comment.