Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

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

Open
#407 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
shell
Domain
devtools

Research direction

Start by reproducing the integrated-terminal behavior on Clear Linux using the settings.json path and the working flatpak-spawn --host command shown in the report. Trace how the configured terminal path is resolved, then identify and document the cause or required configuration; done means the configured path works or the limitation is clearly explained.

Written by the indexing model from the issue text.

Description

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.)

Dominant language
Shell
Stars
216
Forks
82
Avg merge
1d 7h
Merged PRs (30d)
1

Getting set up

We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from flathub/com.visualstudio.code

All issues in flathub/com.visualstudio.code

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.