X2Go Bug report logs - #1591
wslvar and wslpath do not work in tmux session that is started on x2goserver

version graph

Package: x2goserver; Maintainer for x2goserver is X2Go Developers <x2go-dev@lists.x2go.org>; Source for x2goserver is src:x2goserver.

Reported by: Alezender Tan <tan.wei.xin.alezender+x2go@gmail.com>

Date: Fri, 19 Aug 2022 17:45:01 UTC

Severity: normal

Found in version 4.1.0.3-5

Full log


Message #5 received at submit@bugs.x2go.org (full text, mbox, reply):

Received: (at submit) by bugs.x2go.org; 19 Aug 2022 17:44:52 +0000
From voidfreedom775@gmail.com  Fri Aug 19 19:44:50 2022
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
	ymir.das-netzwerkteam.de
X-Spam-Level: 
X-Spam-Status: No, score=-2.0 required=3.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE,
	T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no
	version=3.4.2
Received: from mail-ua1-x932.google.com (mail-ua1-x932.google.com [IPv6:2607:f8b0:4864:20::932])
	by ymir.das-netzwerkteam.de (Postfix) with ESMTPS id D7D115DAD6
	for <submit@bugs.x2go.org>; Fri, 19 Aug 2022 19:44:48 +0200 (CEST)
Received: by mail-ua1-x932.google.com with SMTP id l26so2058417uai.2
        for <submit@bugs.x2go.org>; Fri, 19 Aug 2022 10:44:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20210112;
        h=to:subject:message-id:date:from:mime-version:from:to:cc;
        bh=mRM4sk6fsP/wCJfFhkpEbraAHi1pulR2tafwwFYMCRk=;
        b=FbHIOpJJYQrZ84pdOpiieCOoPX1JhEf74bHr/B6vTmsnSkBncTGLY2869d3FBCekY4
         pRpZxbYYf9unEWzSWJkrGzlQPNrBGpK/vHJMiiOCySLACmKMmu5LNzDusRm1rcZLcb0z
         TFuIbXAaUZFPj096R70SoWmPJv4RJLneNFq1eXYyve67XSks+dJ6UTQAOlLRww/ifQd7
         emJ4eJBJ9Ma0VZHetZCRzyRsy3L2gcYtkn3bCGH3Qgj+JFecVT4YCUZnBLIOLnRTYR7h
         ohz/dSW1Zivi+vfExO7yUXgr9L8+ZSEVcDVEJwc2X4RCNIv2s7J2+m7RKs84SPamV4/1
         9z3A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20210112;
        h=to:subject:message-id:date:from:mime-version:x-gm-message-state
         :from:to:cc;
        bh=mRM4sk6fsP/wCJfFhkpEbraAHi1pulR2tafwwFYMCRk=;
        b=CX5eT7xpqLxRieSJc2q0REMwe90QFcmbYpaEbrQBJFA+RnCxjAs1/O8Dv77Mg2oKvh
         VkGI5CciRfpkbuBg9i82fDoZPybp0H/2u+HsXoMlHRytinwzL42ZTaQfUws9tJNTXlFA
         T5UiidJYRmmL9diXU4nhP6nVgFWnHJM2OMpHHY/qt6/5CMuExwQejDMYS85y/230fRbD
         xS+Nr/ffAvXjUGjDy/pjMrD4yrGrQDykiJIStPMrAzd1n7lrJuZc9Ri29MOoIeYipAvA
         NoDWfIWCTDMP/VLmsLbPopiqrs3rPbTIiQa5TQtQLDDTYyCYbkLx/s90Aqjr7ca9cZnl
         VcZw==
X-Gm-Message-State: ACgBeo0yDJBW3LCDQ+RivG5EbTAwjQzygcj1xdw8Yuf6JBjBJFIo2Ynv
	XYJ5t6Mjk15+jSgoOdykG3nUwkc61U/JobFj65gfnl2N
X-Google-Smtp-Source: AA6agR6Bz57bKCQH6pn/P1xIPVETSVBoMgOq59pghNLi9fBTs1HVlSbVLMxC1kKbGavOsx8C1JTi0KyPHMRDXrIS7w8=
X-Received: by 2002:ab0:2150:0:b0:384:ba63:69f9 with SMTP id
 t16-20020ab02150000000b00384ba6369f9mr3408707ual.100.1660931087537; Fri, 19
 Aug 2022 10:44:47 -0700 (PDT)
MIME-Version: 1.0
From: Alezender Tan <tan.wei.xin.alezender+x2go@gmail.com>
Date: Fri, 19 Aug 2022 19:44:36 +0200
Message-ID: <CACGoDY4SKmMboKdw_m6vX9cFJX-2_3R8C2a55G7M4jxa9FTaBQ@mail.gmail.com>
Subject: wslvar and wslpath do not work in tmux session that is started on x2goserver
To: submit@bugs.x2go.org
Content-Type: text/plain; charset="UTF-8"
Package: x2goserver
Version: 4.1.0.3-5

wslvar and wslpath do not work in tmux session that is started on x2goserver

Relevant issues:
- tmux: https://github.com/tmux/tmux/issues/3295
- WSL: https://github.com/microsoft/WSL/issues/8706

Environment:
  1. Client OS: Microsoft Windows [Version 10.0.19042.1466]
  2. Client version: 4.1.2.2 (Qt - 4.8.6)
  3. Server OS:
    a. Kernel version: Linux version
5.10.102.1-microsoft-standard-WSL2 (oe-user@oe-host)
(x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils)
2.34.0.20200220)
    b. Distro version:
```
Distributor ID: Ubuntu
Description: Ubuntu Jammy Jellyfish (development branch)
Release: 22.04
Codename: jammy
```
  4. x2goserver version: `dpkg --status x2goserver` returns
```
Package: x2goserver
Status: install ok installed
Priority: optional
Section: x11
Installed-Size: 420
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Version: 4.1.0.3-5
Replaces: x2goserver-compat, x2goserver-home, x2goserver-one, x2goserver-pyhoca
Depends: bc, libfile-basedir-perl, libfile-which-perl, libswitch-perl,
libtry-tiny-perl, libx2go-server-perl (<< 4.1.0.3-5.1~),
libx2go-server-perl (>= 4.1.0.3-5), lsb-base, lsof, net-tools,
openssh-client, openssh-server, perl, psmisc, pwgen, x2goserver-common
(<< 4.1.0.3-5.1~), x2goserver-common (>= 4.1.0.3-5),
x2goserver-x2goagent (<< 4.1.0.3-5.1~), x2goserver-x2goagent (>=
4.1.0.3-5), xauth, xkb-data, debconf (>= 0.5) | debconf-2.0
Pre-Depends: init-system-helpers (>= 1.54~)
Recommends: fontconfig, sshfs, x11-apps, x11-session-utils, x11-utils,
x11-xfs-utils, x11-xkb-utils, x11-xserver-utils, x2goserver-extensions
(<< 4.1.0.3-5.1~), x2goserver-extensions (>= 4.1.0.3-5),
x2goserver-fmbindings (<< 4.1.0.3-5.1~), x2goserver-fmbindings (>=
4.1.0.3-5), x2goserver-printing (<< 4.1.0.3-5.1~), x2goserver-printing
(>= 4.1.0.3-5), x2goserver-xsession (<< 4.1.0.3-5.1~),
x2goserver-xsession (>= 4.1.0.3-5), xfonts-base, xinit
Suggests: pulseaudio-utils, rdesktop
Breaks: x2godesktopsharing (<< 3.1.1.2-0~), x2goserver-compat (<<
4.0.1.99~), x2goserver-home, x2goserver-one, x2goserver-pyhoca (<<
4.0.1.99~)
...
```
  5. x2goserver-xsession version: `dpkg --status x2goserver-xsession` returns
```
Package: x2goserver-xsession
Status: install ok installed
Priority: optional
Section: x11
Installed-Size: 54
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: all
Source: x2goserver
Version: 4.1.0.3-5
Depends: dbus, perl:any, x11-common, x2goserver (<< 4.1.0.3-5.1~),
x2goserver (>= 4.1.0.3-5)
...
```
  6. nxagent version: `dpkg --status nxagent` returns
```
Package: nxagent
Status: install ok installed
Priority: optional
Section: x11
Installed-Size: 4806
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Multi-Arch: foreign
Source: nx-libs
Version: 2:3.5.99.26-5
Replaces: libxcompext3, nxauth
Depends: libnx-x11-6 (= 2:3.5.99.26-5), libxcomp3 (= 2:3.5.99.26-5),
libxcompshad3 (= 2:3.5.99.26-5), x11-xkb-utils, libc6 (>= 2.34),
libjpeg8 (>= 8c), libpixman-1-0 (>= 0.13.2), libpng16-16 (>= 1.6.2-1),
libtirpc3 (>= 1.0.2), libx11-6 (>= 2:1.4.99.1), libxcomposite1 (>=
1:0.4.5), libxdmcp6, libxext6, libxfixes3, libxfont2 (>= 1:2.0.1),
libxinerama1, libxml2 (>= 2.7.4), libxpm4, libxrender1, zlib1g (>=
1:1.1.4)
Recommends: xfonts-base, xkb-data
Breaks: libxcompext3 (<< 2:3.5.99.3~), nxauth
...
```

Steps to reproduce:
  1. Install and setup WSL2 based on
https://docs.microsoft.com/en-us/windows/wsl/install (exact component
versions can be found at https://github.com/microsoft/WSL/issues/8706)
  2. Install x2goserver in WSL2 based on
https://wiki.x2go.org/doku.php/doc:installation:x2goserver
  3. Install x2goclient on host Windows system based on
https://wiki.x2go.org/doku.php/doc:installation:x2goclient
  4. Download tarball from
https://github.com/tmux/tmux/releases/tag/3.3a (currently latest
version, older version i.e. 3.2a installed via `sudo apt install tmux`
also encounters same problem)
  5. Install tarball in WSL2 based on instructions at
https://github.com/tmux/tmux/wiki/Installing#from-source-tarball
  6. Start session on x2goclient and run `tmux`
  7. Run `wslvar -S` within tmux session
  8. Run `wslpath -w "${HOME}"` within tmux session

Expected results:
  1. output of `wslvar -S` within tmux should be
```
Name                           Value
----                           -----
ALLUSERSPROFILE                C:\ProgramData
...
windir                         C:\Windows
ZES_ENABLE_SYSMAN              1
```
  2.  output of `wslpath -w "${HOME}"` within tmux should be
`\\wsl$\<distro_name>\home\<username>`

Actual results:
  1. Running `wslvar -S` within tmux running on x2goserver yields no output
  2. Running `wslpath -w "${HOME}"` within tmux on x2goserver returns
`wslpath: /home/<username>: Invalid argument`

Further information:
As mentioned at
https://github.com/microsoft/WSL/issues/8706#issuecomment-1211326423,
running tmux in WSL2 shell first then on x2goserver causes `wslvar -S`
and `wslpath -w "${HOME}"` to work properly but they break if tmux is
run on x2goserver first


Send a report that this bug log contains spam.


X2Go Developers <owner@bugs.x2go.org>. Last modified: Fri Apr 26 08:05:21 2024; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.