Skip to content

Commit a6f1f50

Browse files
committed
print experimental note if cookiebaker() is used #7
1 parent f7ab016 commit a6f1f50

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

runx

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /bin/bash
22
# runx: Provide an X server in Cygwin, MSYS2 or WSL.
33

4-
Version="v0.4.8"
4+
Version="v0.4.9"
55

66
usage() { # Usage information (--help)
77
echo "runx - Run Linux GUI applications on MS Windows.
@@ -494,8 +494,8 @@ setup_cookie() { # Generate X authentication cookie
494494
local Cookie
495495

496496
verbose "Cookies:
497-
$Xservercookie
498-
$Xclientcookie"
497+
server: $Xservercookie
498+
client: $Xclientcookie"
499499

500500
# remove old cookies if no VcXsrv is running yet
501501
command -v tasklist.exe >/dev/null && {
@@ -522,6 +522,11 @@ $(xauth -v -f "$Xclientcookie" list)"
522522
verbose "Server cookie:
523523
$(xauth -v -f "$Xservercookie" list)"
524524
} || {
525+
note "Command xauth not found.
526+
runx will try experimental code to bake an X cookie itself.
527+
Feedback on success or failure is appreciated at:
528+
https://github.com/mviereck/runx/issues/7
529+
If it fails, you can use option --no-auth as a workaround."
525530
cookiebaker $Hostip:$Newdisplaynumber > $Xclientcookie.tmp
526531
cat $Xclientcookie.tmp >> $Xclientcookie
527532
cat $Xclientcookie.tmp >> $Xservercookie

0 commit comments

Comments
 (0)