File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
# runx: Provide an X server in Cygwin, MSYS2 or WSL.
3
3
4
- Version=" v0.4.17 "
4
+ Version=" v0.4.18 "
5
5
6
6
usage () { # Usage information (--help)
7
7
echo " runx - Run Linux GUI applications on MS Windows.
@@ -517,14 +517,13 @@ $(escapestring "$Xauthbin") \"$@\"
517
517
"
518
518
519
519
[ -e " $Xauthbin " ] && {
520
- Xauthbin=" $( escapestring " $Xauthbin " ) "
521
520
grep -q " /usr/bin" <<< " $Xauthbin" && Xauthsystem=" subsystem" || Xauthsystem=" windows"
522
521
# generate fresh cookie
523
- $Xauthbin -i -f " $( convertpath $Xauthsystem " $Xcookie " ) " add :$Newdisplaynumber . $( mcookie)
522
+ " $Xauthbin " -i -f " $( convertpath $Xauthsystem " $Xcookie " ) " add :$Newdisplaynumber . $( mcookie)
524
523
# prepare cookie with localhost identification disabled by ffff. ffff means 'familiy wild'
525
- Cookie=" $( $Xauthbin -i -f " $( convertpath $Xauthsystem " $Xcookie " ) " nlist | sed -e ' s/^..../ffff/' ) "
526
- printf " $Cookie " | $Xauthbin -i -f " $( convertpath $Xauthsystem " $Xcookie " ) " nmerge -
527
- verbose " Cookie: $( $Xauthbin -v -f " $( convertpath $Xauthsystem " $Xcookie " ) " list) "
524
+ Cookie=" $( " $Xauthbin " -i -f " $( convertpath $Xauthsystem " $Xcookie " ) " nlist | sed -e ' s/^..../ffff/' ) "
525
+ printf " $Cookie " | " $Xauthbin " -i -f " $( convertpath $Xauthsystem " $Xcookie " ) " nmerge -
526
+ verbose " Cookie: $( " $Xauthbin " -v -f " $( convertpath $Xauthsystem " $Xcookie " ) " list) "
528
527
} || {
529
528
note " Command xauth not found.
530
529
runx will try experimental code to bake an X cookie itself.
You can’t perform that action at this time.
0 commit comments