-
Notifications
You must be signed in to change notification settings - Fork 60
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
Bug (Windows): Launching through API fails with URLs containing single quote marks #62
Comments
if you change that to If you can do that along with the debug, that should add some additional help. I don't have a windows machine to do this testing on, so all my windows fixing is done by generous folks like yourself. Does start have the same syntax in all versions of windows? Could the possibility exist that there are slight differences between windows versions that i'll need to check? |
The other item to possibly check is the use of |
You're right. Looking at the documentation for system, the call behaves differently depending on the arguments specified. The array version used in Launchy in Ultimately, I think we just have to appease I'll submit a fix when I get the chance and ensure that this is the right behavior for all supported versions of Windows. |
Excellent, and don't forget to add yourself to CONTRIBUTING.md |
Hi @schmich checking in to see if you ever created a patch for this issue. |
version 2.4.0 released which I hope fixes this. If you can, please verify. |
My environment:
Launchy fails when trying to open a URL containing any single quote (
'
) characters. Example:On my machine, this just opens a new command prompt and does not open any browser.
This works fine if I remove the single quote character or encode it as
%27
. Single quote characters are valid in URLs, though, so this should just work without needing to encode.Launchy debug output:
If I manually run
cmd /c start /b http://google.com/?q=launchy's+great
from the command line, my default browser opens with the URL correctly.Here's my guess as to what's happening:
system
call to run the command is wrapping the URL in double quotes.cmd /c start /b "http://google.com/?q=launchy's+great"
start
treats the first double-quoted argument as the window title (seestart /?
), so it doesn't think there's any specified command or program, which explains why a new command prompt is opened.cmd /c start /b "" "http://google.com/?q=launchy's+great"
(note the empty quotes specifying the title argument).I haven't had a chance to dig through the code much. If I get some time, I'll fork and fix this.
Thanks & regards,
Chris
The text was updated successfully, but these errors were encountered: