Skip to content

Commit

Permalink
xauth: use printf instead of echo #7
Browse files Browse the repository at this point in the history
  • Loading branch information
mviereck committed Aug 13, 2022
1 parent 13596cb commit 9a31c2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /bin/bash
# runx: Provide an X server in Cygwin, MSYS2 or WSL.

Version="v0.4.10"
Version="v0.4.11"

usage() { # Usage information (--help)
echo "runx - Run Linux GUI applications on MS Windows.
Expand Down Expand Up @@ -514,8 +514,8 @@ setup_cookie() { # Generate X authentication cookie
xauth -i -f "$Xclientcookie" add :$Newdisplaynumber . $(mcookie)
# prepare cookie with localhost identification disabled by ffff. ffff means 'familiy wild'
Cookie="$(xauth -i -f "$Xclientcookie" nlist | sed -e 's/^..../ffff/')"
echo "$Cookie" | xauth -i -f "$Xclientcookie" nmerge -
echo "$Cookie" | xauth -i -f "$Xservercookie" nmerge -
printf "$Cookie" | xauth -i -f "$Xclientcookie" nmerge -
printf "$Cookie" | xauth -i -f "$Xservercookie" nmerge -

verbose "Client cookie:
$(xauth -v -f "$Xclientcookie" list)"
Expand Down

0 comments on commit 9a31c2b

Please sign in to comment.