Skip to content

Instantly share code, notes, and snippets.

@no6v
Created June 18, 2010 22:30
Show Gist options
  • Save no6v/444313 to your computer and use it in GitHub Desktop.
Save no6v/444313 to your computer and use it in GitHub Desktop.
diff --git a/lib/termtter/system_extensions.rb b/lib/termtter/system_extensions.rb
index 8816427..d211d95 100644
--- a/lib/termtter/system_extensions.rb
+++ b/lib/termtter/system_extensions.rb
@@ -73,7 +73,7 @@ def open_browser(url)
else
[['xdg-open'], ['firefox'], ['w3m', '-X']]
end.find do |cmd|
- system *cmd, url
+ system(*(cmd + [url]))
$?.exitstatus != 127
end
if found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment