Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

k8s pod中使用trzsz-go, 提示需要 'zenity' needs to be installed on your local Linux desktop #59

Open
uzengo91 opened this issue Dec 5, 2024 · 8 comments

Comments

@uzengo91
Copy link

uzengo91 commented Dec 5, 2024

k8s pod中使用二进制安装 trzsz-go v1.1.8

trzsz -z bash

trz
::TRZSZGO:TRANSFER:R:1.1.8:3337942545900:36149
'zenity' needs to be installed on your local Linux desktop.

这种情况下 怎么解决

@lonnywong
Copy link
Member

在进入 pod 之前,先运行 trzsz ,进入之后就不用再运行了。

@uzengo91
Copy link
Author

uzengo91 commented Dec 5, 2024

在进入 pod 之前,先运行 trzsz ,进入之后就不用再运行了。

可以了 thanks

@uzengo91 uzengo91 closed this as completed Dec 5, 2024
@uzengo91 uzengo91 reopened this Dec 5, 2024
@uzengo91
Copy link
Author

uzengo91 commented Dec 5, 2024

image
用了几次以后就再也不能弹出来了, 有窗口但是没办法展示出来

@lonnywong
Copy link
Member

是什么系统?zenity 的版本是什么?

@uzengo91
Copy link
Author

uzengo91 commented Dec 5, 2024

是什么系统?zenity 的版本是什么?

系统 windows wsl2

PRETTY_NAME="Ubuntu 22.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.2 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

终端版本

Windows 终端
版本: 1.21.3231.0

zenity 版本

 zenity --version
4.0.2

@lonnywong
Copy link
Member

Windows 用 tssh.exe ?这样可以选择 Windows 中的文件,也不依赖 zenity 。

@uzengo91
Copy link
Author

uzengo91 commented Dec 5, 2024

Windows 用 tssh.exe ?这样可以选择 Windows 中的文件,也不依赖 zenity 。

重启wsl 能正常弹窗选择文件了,不喜欢用win下的命令行,习惯用zsh。
另外 这个拖拽上传 一次都没测试成功过,每次粘贴进去就是文件地址

@lonnywong
Copy link
Member

另外 这个拖拽上传 一次都没测试成功过,每次粘贴进去就是文件地址

应该改一下 https://github.com/trzsz/trzsz-go/blob/main/trzsz/drag.go 这里的逻辑就可以了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants