launchy
launchy copied to clipboard
Fix the error "warning: deprecated Object#=~ ..."
Ruby 2.7 now warns with
warning: deprecated Object#=~ is called on Launchy::Argv; it always returns nil
Cause: When Running Mint without any environment overrides set the browser_cmdline
is Argv[xdg-open]
Alternative solutions:
- change
if cmd =~ /%s/ then
toif cmd.is_a?(String) && cmd =~ /%s/ then
- Add
=~
andgsub!
toArgv