-
Notifications
You must be signed in to change notification settings - Fork 859
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
cygstart equivalent #4287
Comments
|
@therealkenc no, thats not a good idea as it fails with space or ampersand: wslstart 'http://example.com?aa bb&cc' |
$ ./wslstart iexplore 'http://example.com?aa bb&cc' Start-Process method can not use any arguments. And cmd.exe /c start '' "$@" |
I was hoping you'd show.
Maybe...
Yeah. Probably after all....
|
PS: I take back that there's no use case for Linux-native Chrome/Firefox on WSL. Its so all the |
Is this really what you all are suggesting? A hacky shell script? A standalone tool would be better, like cygstart. that way dont have to worry about any drama with i was hoping WSL offered something like rundll32 url,OpenURL "http://example.com?aa bb&cc" |
Your hacky script only launches URLs.
Which wasn't your OP ask. Your OP ask was for |
@therealkenc did you actually test that? or are you just assuming after reading the function name? Works for me with files and URLs |
No; I need not assume anything. Because I know what ShellExecuteW() does. And way rundll32 takes parameters. |
@therealkenc perhaps you should actually test it before talking further it works with URLs and local files |
Yes. Yes it does. Never said it didn't work with both files and URLs. Never even implied otherwise. What I said was I know what But happy you found an answer to your question either way. |
@therealkenc when you say this:
I am confused because previously you said this:
does that mean something other than what i thought it to mean? |
|
restoring deleted message:
i guess i am a dummy, as I am still not understanding do you have some example path that gets mangled by |
With Cygwin, cygstart wraps the ShellExecuteW function
https://docs.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-shellexecutew
cmd.exe has similar option with
start
and PowerShell withStart-Process
it seems WSL has no such option
The text was updated successfully, but these errors were encountered: