ubuntu 上未使用 snap 安装 Postman

发布于 2025-01-16 20:57:55 字数 1549 浏览 2 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

撩起发的微风 2025-01-23 20:57:55

通过在 snap run postman 命令之前将变量设置为 1 来禁用 Wayland 运行:

DISABLE_WAYLAND=1 snap run postmanLIBGL_ALWAYS_SOFTWARE=1 snap run postman

编辑:禁用硬件加速一般来说,为 Xorg 创建一个配置文件:

如果 /etc/X11/xorg.conf.d/disable-gpu.conf 不存在:

echo -e 'Section "Extensions"\nOption "GLX" "Disable"\nEndSection' > /etc/X11/xorg.conf.d/disable-gpu.conf

已安装应用程序使用没有完全 Wayland 支持的 sudo - 邮递员持续存在的问题: https: //github.com/postmanlabs/postman-app-support/issues/9746 - 可能无法显示其 GUI。您可以在运行应用程序之前运行以下命令,向您的用户和 root 授予 xhost 访问权限:

xhost +SI:localuser:root

这比通用的 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-w

Run with Wayland disabled by setting the variable to 1 before your snap run postman command:

DISABLE_WAYLAND=1 snap run postman or LIBGL_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:

echo -e 'Section "Extensions"\nOption "GLX" "Disable"\nEndSection' > /etc/X11/xorg.conf.d/disable-gpu.conf

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:

xhost +SI:localuser:root

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文