-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Portable Commands have spaces in some cases #2951
Comments
Should we prohibit spaces, or are they expected? |
I guess this is a question of usage. The referenced application is a GUI application, so because of #2711 it's required to use To me it's a question of usability, where if a space is present in the file name, it becomes unusable, but if the space is replaced by a |
What do the "official" docs expect for this package? I'm trying to reason through the best behavior we should be focusing on. We want people to be able to use applications "as expected". |
I don't see the issue with the spaces? In PS you can simply do |
Also, do a majority of users know about being able to do the
|
It's weird that it doesn't start when you call it with &, but it is still finding it. Otherwise you'd get "is not recognized as the name of a cmdlet, ...". Maybe it's the difference between using CreateProcess and ShellExecute, and something about that app in particular. I've been playing with a copy of "nuget.exe" where I put spaces in the name, and it all works just fine when I call it with &. Same if I use a symlink. I'd think the I don't think this is an issue with winget, anyways. If the executable has spaces in its name, that is also the case when you install it outside of winget. |
That is true, but not all portable applications are added to the path by the user, especially when they are GUI apps. Adding every package to path could cause confusion if there are spaces. Perhaps the best action here is to wait and see if any additional feedback comes in |
Brief description of your issue
When executable names contain spaces, it makes the commands unusable in some shells. See https://github.com/microsoft/winget-pkgs/tree/c6cf13bd8fb11fc67ab01e20b079b61e5fbd4c80/manifests/c/Camunda/Modeler/5.7.0 for an example of a file which has a space in the path.
Steps to reproduce
Use the above manifest
Expected behavior
Command alias to be `Camunda-Modeler'
Actual behavior
Alias is
Camunda Modeler
Environment
The text was updated successfully, but these errors were encountered: