Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

The "path": "/usr/bin/flatpak-spawn" settings trick not working

未关闭
#407 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
shell
领域
devtools

调研方向

首先,使用报告中显示的 settings.json 路径和可正常工作的 flatpak-spawn --host 命令,在 Clear Linux 上复现集成终端的行为。跟踪已配置的终端路径是如何解析的,然后确定并记录原因或所需的配置;完成的标准是已配置的路径能够正常工作,或已清楚解释该限制。

由索引模型根据 Issue 内容生成。

描述

Attempting to use the host shell in the integrated terminal, and the "path": "/usr/bin/flatpak-spawn" trick in settings.json is not working for me. Interestingly, however, launching commands in the integrated terminal using the flatpak-spawn --host prefix works just fine(!). (Also, I checked, and my distro does not have a /usr/bin/flatpak-spawn file, nor does there seem to be a flatpak-spawn file anywhere on my HDD.)

Here's what the terminal says:

sh-5.1$ flatpak-spawn --host swupd search java
[270 preload-host-spawn-strategy] Warning: waitpid override ignores groups
Bundle with the best search result:
     java-basic                         - Build and run Java language programs.  (506MB) 

This bundle can be installed with:

  swupd bundle-add  java-basic

Alternative bundle options are
     java11-basic                       - Build and run Java 11 language programs.  (310MB) 
     java13-basic                       - Build and run Java 13 language programs.  (330MB) 
     nodejs-basic                       - Run JavaScript server side for fast, scalable network applications.  (300MB) 
[270 preload-host-spawn-strategy] Warning: waitpid override ignores groups
sh-5.1$ swupd search java
[270 preload-host-spawn-strategy] Warning: waitpid override ignores groups
sh: swupd: command not found
[270 preload-host-spawn-strategy] Warning: waitpid override ignores groups
sh-5.1$

What am I doing wrong?

(My distro is Clear Linux.)

主要语言
Shell
星标
216
派生
82
平均合并
1 天 7 小时
30 天内合并 PR
1

环境准备

我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

flathub/com.visualstudio.code 的其他 Issue

查看 flathub/com.visualstudio.code 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。