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

Make OpenGUICommand work with paths containing spaces #86

Merged
merged 4 commits into from
Nov 19, 2018

Conversation

raphaeldore
Copy link
Contributor

@raphaeldore raphaeldore commented Apr 24, 2017

Hi,

I fixed a little issue I had. I tried to explore an .msi file in a folder containing spaces from the Windows context menu, but the LessMSI GUI was unable to find the file. I decided to investigate and found that in OpenGUICommand.cs, paths were not being quoted. For example, the class would execute the GUI with this command:

lessmsi-gui o E:\Downloads and software\software.msi

(there are 4 arguments because of the spaces), instead of:

  lessmsi-gui o "E:\Downloads and software\software.msi"

Obviously this is not a problem if the path does not contain spaces.

Now, I wanted to add a test for this...but I don't know how to test this. If you have any ideas let me know.

-Raphaël

@activescott activescott merged commit 1a26a55 into activescott:master Nov 19, 2018
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.

2 participants