This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
通过在 snap run postman 命令之前将变量设置为 1 来禁用 Wayland 运行:
DISABLE_WAYLAND=1 snap run postman
或LIBGL_ALWAYS_SOFTWARE=1 snap run postman
编辑:禁用硬件加速一般来说,为 Xorg 创建一个配置文件:
如果
/etc/X11/xorg.conf.d/disable-gpu.conf
不存在:已安装应用程序使用没有完全 Wayland 支持的 sudo - 邮递员持续存在的问题: https: //github.com/postmanlabs/postman-app-support/issues/9746 - 可能无法显示其 GUI。您可以在运行应用程序之前运行以下命令,向您的用户和 root 授予 xhost 访问权限:
这比通用的
xhost +
更安全。有关此问题的更多信息,请访问 AskUbuntu:https://askubuntu.com/ questions/614387/gksu-gtk-warning-cannot-open-display-0 和此处:https://askubuntu.com/questions/961967/why-dont-gksu-gksudo-or-launching-a-graphical-application-with-sudo-work-with-wRun with Wayland disabled by setting the variable to 1 before your snap run postman command:
DISABLE_WAYLAND=1 snap run postman
orLIBGL_ALWAYS_SOFTWARE=1 snap run postman
EDIT: To disable hardware acceleration in general, create a configuration file for Xorg:
If
/etc/X11/xorg.conf.d/disable-gpu.conf
does not exist:Applications installed with sudo that do not have full Wayland support - an ongoing issue with postman: https://github.com/postmanlabs/postman-app-support/issues/9746 - may have trouble displaying their GUI. You can grant xhost access to your user and root with the following command run before you run your application:
This is more secure than a generic
xhost +
. More information on this is available on AskUbuntu here: https://askubuntu.com/questions/614387/gksu-gtk-warning-cannot-open-display-0 and here: https://askubuntu.com/questions/961967/why-dont-gksu-gksudo-or-launching-a-graphical-application-with-sudo-work-with-w