Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

launching buildFHSUserEnvBubblewrap fails when / contains directory with spaces #101942

Closed
bennofs opened this issue Oct 28, 2020 · 0 comments · Fixed by #101967
Closed

launching buildFHSUserEnvBubblewrap fails when / contains directory with spaces #101942

bennofs opened this issue Oct 28, 2020 · 0 comments · Fixed by #101967

Comments

@bennofs
Copy link
Contributor

bennofs commented Oct 28, 2020

Describe the bug
When you have directories with spaces in your root directory /, then the launch script of buildFHSUserEnvBubblewrap fails since it does not correctly escape the space.

To Reproduce

$ sudo mkdir '/with space'
$ nix run '(with import <nixpkgs> {}; buildFHSUserEnvBubblewrap { name = "example"; })' -c 'example'
bwrap: Can't find source path /with: No such file or directory
$ 

Expected behavior
The launcher script should work correctly even with directory names that contain spaces.

Additional context
Discovered when trying to run steam, which also uses buildFHSUserEnvBubblewrap.

Notify maintainers
@illegalprime

Metadata

  • system: "x86_64-linux"
  • host os: Linux 5.9.1-arch1-1, Arch Linux, noversion
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.3.4
  • channels(bennofs): ""
  • channels(root): "nixpkgs-21.03pre248787.7ad5e816fab"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixpkgs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant