gpt4 book ai didi

ubuntu-18.04 - 如何从 snap 应用程序内部打开终端?

转载 作者:行者123 更新时间:2023-12-01 04:38:00 28 4
gpt4 key购买 nike

当我尝试从 Gitkraken GUI 在终端中打开我的 repo 时。它指出:

There is no terminal configured in your settings. Would you like to configure your terminal now?



接下来,我手动将 gnome 终端设置为 custom terminal commandgnome-terminal %d .关键词 %d应替换为 repo 路径。在终端中运行它是有效的。然而在 Gitkraken 我得到:

Command failed. gnome-terminal path/to/repo /bin/sh 1: gnome-terminal: not-found



我如何将 gnome 终端设置为 gitkraken 的默认终端。我正在运行 Ubuntu 18.04。

编辑:

我看到 GitKraken 在 snap 中运行.我已将问题扩展到如何从 snap 内运行 linux 命令。

最佳答案

今天我了解到snap confinement .

A snap’s confinement level is the degree of isolation it has from your system.



要允许以与传统软件包大致相同的方式访问系统资源,您应该使用 --classic 安装 snap范围。
snap install gitkraken --classic

关于ubuntu-18.04 - 如何从 snap 应用程序内部打开终端?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51357523/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com