Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了一个简单的可执行文件,当直接在 Ubuntu 上运行时,它会使用 firefox 打开一个 url,但是当作为 snap 包的一部分安装时,尽管我提供了网络插件,但它失败并出现“firefox:未找到”错误。
在您的应用程序中使用 xdg-open 以使用默认 Web 浏览器启动 url。在运行 snap 的主机上,它们需要安装snapd-xdg-open(so apt install snapd-xdg-open)。这将在未来的 snapd 版本中修复。
snapd-xdg-open
apt install snapd-xdg-open