Skip to content

Commit

Permalink
xtool(): fix X container check
Browse files Browse the repository at this point in the history
  • Loading branch information
Lauscher authored and Lauscher committed Jan 16, 2023
1 parent 789e751 commit 850cfbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x11docker
Original file line number Diff line number Diff line change
Expand Up @@ -5354,7 +5354,7 @@ xtool() { # run X tool command in X container if available
Usexcontainer="no"
;;
esac
[ "$Check" = "no" ] && Usexcontainer="yes"
[ "$Check" = "no" ] && Usexcontainer="${Usexcontainer:-yes}"
Usexcontainer="${Usexcontainer:-no}" # in case xinitrc already runs in X container.
verbose "xtool(): (use xc $Usexcontainer): ${1:-}"
case "$Usexcontainer" in
Expand Down Expand Up @@ -9911,7 +9911,7 @@ check_options_interferences() { # check multiple option interferences, change se

# Check whether host X server has MIT-SHM enabled.
[ "$Winsubsystem" ] && Hostmitshm="no" || {
xtool --nocheck "env LD_PRELOAD= xdpyinfo 2>>$Xinitlogfile | grep -q 'MIT-SHM'" && Hostmitshm="yes" || Hostmitshm="no"
xtool --nocheck "env LD_PRELOAD= xdpyinfo 2>>$Xinitlogfile | grep -q MIT-SHM" && Hostmitshm="yes" || Hostmitshm="no"
xtool --check --quiet xdpyinfo || Hostmitshm="yes" # if unknown, assume yes
}

Expand Down

0 comments on commit 850cfbe

Please sign in to comment.