Skip to content

Commit

Permalink
Merge pull request #160 from copiousfreetime/bugfix/windows-argv-list
Browse files Browse the repository at this point in the history
Fix the generation of argv for ChildProcess
  • Loading branch information
copiousfreetime authored Jan 23, 2025
2 parents 8691074 + 4b2d358 commit 5c542d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Launchy Changelog
## Version 3.1.0 - 2025-01-22
* Fix the argv array when passing to ChildProcess on windows - <https://github.com/copiousfreetime/launchy/issues/159>

## Version 3.0.1 - 2024-05-03
* Added rubocop and fix all the warnings
* Fix rubygem changelog_uri - Spone
Expand Down
3 changes: 2 additions & 1 deletion lib/launchy/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ def run(cmd, *args)
end

def wet_run(cmd, *args)
argv = [cmd, *args].flatten
argv = shell_commands(cmd, args)
Launchy.log "ChildProcess: argv => #{argv.inspect}"

process = ChildProcess.build(*argv)

process.io.inherit!
Expand Down

0 comments on commit 5c542d3

Please sign in to comment.