Package: x2goserver Version: 4.1.0.3-5
wslvar and wslpath do not work in tmux session that is started on x2goserver
Relevant issues:
Environment:
Distributor ID: Ubuntu
Description: Ubuntu Jammy Jellyfish (development branch)
Release: 22.04
Codename: jammy
dpkg --status x2goserver
returnsPackage: 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~)
...
dpkg --status x2goserver-xsession
returnsPackage: 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)
...
dpkg --status nxagent
returnsPackage: 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:
sudo apt install tmux
also encounters same problem)tmux
wslvar -S
within tmux sessionwslpath -w "${HOME}"
within tmux sessionExpected results:
wslvar -S
within tmux should beName Value
---- -----
ALLUSERSPROFILE C:\ProgramData
...
windir C:\Windows
ZES_ENABLE_SYSMAN 1
wslpath -w "${HOME}"
within tmux should be
\\wsl$\<distro_name>\home\<username>
Actual results:
wslvar -S
within tmux running on x2goserver yields no outputwslpath -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