我希望能够在我的Ubuntu21.04系统上使用AutoType特性的KeePasssXC,我相信它使用Wayland。
KeePassXC用户指南指出:
Auto-Type will be disabled when run with a Wayland compositor on Linux. To use
Auto-Type in this environment, you must set QT_QPA_PLATFORM=xcb or start
KeePassXC with the -platform xcb command-line flag.发出命令:
/usr/bin/keepassxc -platform xcb在终端中提供以下消息:
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.确切地说,如何使用QT_QPA_PLATFORM=wayland?
发布于 2021-05-27 17:48:25
KeePassXC 2.6.4可以在20.10与Wayland一起自动键入(带有一些小错误).所以我假设它在21.04仍然有效。
但是,在Ubuntu中,KeePassXC仅位于2.6.2版本,因此您必须添加KeePassXC PPA才能获得2.6.4版本。
来源:https://launchpad.net/~phoerious/+archive/ubuntu/keepassxc
sudo add-apt-repository ppa:phoerious/keepassxc
sudo apt-get update然后..。
sudo apt-get install keepassxc若要使用QT_QPA_PLATFORM=wayland,请编辑您的~/..bash_aliases文件,并输入类似于export QT_QPA_PLATFORM=wayland的行。登出[登录]
发布于 2021-05-28 16:22:07
这并不完全是对我的问题的回答,而是一种工作:可以选择在Xorg上运行Ubuntu21.04(点击齿轮)。这样做可以使KeePassXC像预期的那样工作。如果Ubuntu停止Xorg选项,显然,这个工作周期将无法工作。因此,最初的问题是“一个人究竟是如何使用QT_QPA_PLATFORM=wayland的?”要让KeePassXC在Wayland上工作仍然有效。(直到一个小时前,我才自动登录到Ubuntu,Xorg选项只能从密码请求页面中看到。)
https://askubuntu.com/questions/1340987
复制相似问题