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

fix: handle path with spaces on Windows when installing Podman (#1208) #1270

Merged
merged 1 commit into from
Jan 30, 2023

Conversation

lstocchi
Copy link
Contributor

@lstocchi lstocchi commented Jan 26, 2023

What does this PR do?

It makes sure to install Podman even on paths having spaces
Found a discussion on node repo about it nodejs/node#38490 (comment)
By wrapping the path with double quotes everything should work fine.

This also impacts MacOs users so please give it a try. It should work though.

Screenshot/screencast of this PR

N/A

What issues does this PR fix or reference?

Fixes #1208

How to test this PR?

  1. make sure you don't have podman installed and you have a username with a space in it
  2. start podman-desktop and install podman from it

Copy link
Collaborator

@benoitf benoitf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested on macOS and it works fine

@jeffmaury
Copy link
Contributor

Out of curiosity, why do we require shell: true on Windows only where we have a lot of other calls of spawn that don't deal with this specific ?

@benoitf
Copy link
Collaborator

benoitf commented Jan 27, 2023

@jeffmaury
Copy link
Contributor

@jeffmaury https://github.com/containers/podman-desktop/pull/160/files#r884494437

Yes but the case covered there is about yarn which is a script and the ones covered by Luca are about kind and podman which are executables.

@benoitf
Copy link
Collaborator

benoitf commented Jan 27, 2023

If it works fine for you on Windows we can remove the shell options ( in another PR)

@benoitf benoitf merged commit 8e6eb3f into containers:main Jan 30, 2023
@podman-desktop-bot podman-desktop-bot added this to the 0.12.0 milestone Jan 30, 2023
benoitf added a commit to benoitf/desktop that referenced this pull request Feb 15, 2023
follow up of containers#1270
For example for brew command it's failing on macOS

Change-Id: I92b7bf8b9b7a50282cbd668bdaea6c1fee930885
Signed-off-by: Florent Benoit <[email protected]>
benoitf added a commit that referenced this pull request Feb 15, 2023
follow up of #1270
For example for brew command it's failing on macOS

Change-Id: I92b7bf8b9b7a50282cbd668bdaea6c1fee930885
Signed-off-by: Florent Benoit <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Podman desktop automatic installation of Podman with space on user path fails
5 participants