Skip to content
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

Fix the error "warning: deprecated Object#=~ ..." #138

Conversation

marcrohloff
Copy link
Contributor

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 to if cmd.is_a?(String) && cmd =~ /%s/ then
  • Add =~ and gsub! to Argv

…gv; it always returns nil" when `browser_cmdline` is an Argv instance
@petergoldstein
Copy link

@copiousfreetime @marcrohloff With the release of Ruby 3.2 this is now a fatal error - launchy doesn't work with Ruby 3.2 because of this issue.

Would it be possible to get this merged, get Ruby 3.2 added to the Semaphore file, and get a new release?

@copiousfreetime
Copy link
Owner

Yeah I'm on the road for the next few days. I'll get this out as soon as I'm in front of a computer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants