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

[BUG]: 0.4.0 无法读取选中内容 #131

Closed
1 task done
linsui opened this issue May 23, 2023 · 7 comments
Closed
1 task done

[BUG]: 0.4.0 无法读取选中内容 #131

linsui opened this issue May 23, 2023 · 7 comments

Comments

@linsui
Copy link

linsui commented May 23, 2023

提交新Issue前请确认一下事项

  • 我已确认以上事项

问题描述

更新到 0.4.0 后翻译窗口无法读取选中内容。

如何复现

用快捷键或者托盘调用 pot 翻译,文本框是空的。

操作系统

Linux

操作系统版本

NixOS

窗口系统(Linux Only)

Wayland

软件版本

No response

补充信息

我改了 XDG_SESSION_TYPE 之后仍然无法工作。

@Pylogmon
Copy link
Member

我早上也发现了,gnome的Wayland并没有实现primary selection

@linsui
Copy link
Author

linsui commented May 23, 2023

GNOME 的 wayland 实现很怪异...

@Integral-Tech
Copy link
Member

我试了 KDE Wayland 可以正常取词

@Pylogmon
Copy link
Member

要想像之前那样通过xwayland运行,还需要添加GDK_BACKEND=x11

@linsui
Copy link
Author

linsui commented May 23, 2023

另外现在所有窗口都不能置顶了,也是因为 GNOME 吗?传入 GDK_BACKEND=x11 之后独立窗口可以置顶但翻译窗口不置顶。

@Pylogmon
Copy link
Member

我觉得是tauri的问题,我测试过程中发现在Wayland下tauri提供的窗口置顶是无效的,这个在kde和gnome下都是一样,应该是tauri没有支持

@Pylogmon
Copy link
Member

#147

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

No branches or pull requests

3 participants