File tree 1 file changed +6
-11
lines changed
1 file changed +6
-11
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.16 "
4
+ Version=" v0.4.17 "
5
5
6
6
usage () { # Usage information (--help)
7
7
echo " runx - Run Linux GUI applications on MS Windows.
@@ -509,17 +509,12 @@ setup_cookie() { # Generate X authentication cookie
509
509
Xauthbin=" ${Vcxsrvexe% vcxsrv.exe} xauth.exe"
510
510
}
511
511
512
- [ -e " $Xauthbin " ] && case " $Winsubsystem " in
513
- MSYS2)
514
- # create xauth wrapper for 'ssh -X' in MSYS2, https://github.com/mviereck/runx/issues/7
515
- [ -e /usr/X11R6/bin/xauth ] || {
516
- mkdir -p /usr/X11R6/bin
517
- echo " #! /bin/bash
512
+ # describe xauth wrapper for 'ssh -X' in MSYS2, https://github.com/mviereck/runx/issues/7
513
+ [ -e " $Xauthbin " ] && [ " $Winsubsystem " = " MSYS2" ] && [ ! -e /usr/X11R6/bin/xauth ] && note " If you want to use 'ssh -X' in MSYS2, you might need
514
+ to create an executeable script /usr/X11R6/bin/xauth with the content:
515
+ #! /bin/bash
518
516
$( escapestring " $Xauthbin " ) \" $@ \"
519
- " > /usr/X11R6/bin/xauth
520
- }
521
- ;;
522
- esac
517
+ "
523
518
524
519
[ -e " $Xauthbin " ] && {
525
520
Xauthbin=" $( escapestring " $Xauthbin " ) "
You can’t perform that action at this time.
0 commit comments