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

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox

Report forwarded to x2go-dev@lists.x2go.org, X2Go Developers <x2go-dev@lists.x2go.org>:
Bug#1591; Package x2goserver. (Fri, 19 Aug 2022 17:45:02 GMT) (full text, mbox, link).

Acknowledgement sent to Alezender Tan <tan.wei.xin.alezender+x2go@gmail.com>:
New Bug report received and forwarded. Copy sent to X2Go Developers <x2go-dev@lists.x2go.org>. (Fri, 19 Aug 2022 17:45:02 GMT) (full text, mbox, link).

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

From: Alezender Tan <tan.wei.xin.alezender+x2go@gmail.com>
To: submit@bugs.x2go.org
Subject: wslvar and wslpath do not work in tmux session that is started on x2goserver
Date: Fri, 19 Aug 2022 19:44:36 +0200
Package: x2goserver

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

  1. Client OS: Microsoft Windows [Version 10.0.19042.1466]
  2. Client version: (Qt - 4.8.6)
  3. Server OS:
    a. Kernel version: Linux version (oe-user@oe-host)
(x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils)
    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
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 (<<,
libx2go-server-perl (>=, lsb-base, lsof, net-tools,
openssh-client, openssh-server, perl, psmisc, pwgen, x2goserver-common
(<<, x2goserver-common (>=,
x2goserver-x2goagent (<<, x2goserver-x2goagent (>=, 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
(<<, x2goserver-extensions (>=,
x2goserver-fmbindings (<<, x2goserver-fmbindings (>=, x2goserver-printing (<<, x2goserver-printing
(>=, x2goserver-xsession (<<,
x2goserver-xsession (>=, xfonts-base, xinit
Suggests: pulseaudio-utils, rdesktop
Breaks: x2godesktopsharing (<<, x2goserver-compat (<<, x2goserver-home, x2goserver-one, x2goserver-pyhoca (<<
  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
Depends: dbus, perl:any, x11-common, x2goserver (<<,
x2goserver (>=
  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:
Replaces: libxcompext3, nxauth
Depends: libnx-x11-6 (= 2:, libxcomp3 (= 2:,
libxcompshad3 (= 2:, 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:, libxcomposite1 (>=
1:0.4.5), libxdmcp6, libxext6, libxfixes3, libxfont2 (>= 1:2.0.1),
libxinerama1, libxml2 (>= 2.7.4), libxpm4, libxrender1, zlib1g (>=
Recommends: xfonts-base, xkb-data
Breaks: libxcompext3 (<< 2:, 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
  3. Install x2goclient on host Windows system based on
  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
  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

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
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: Mon May 27 11:53:34 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.