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

Couldn't get a file descriptor referring to the console #70

Closed
phanhaiquang opened this issue Oct 28, 2013 · 10 comments
Closed

Couldn't get a file descriptor referring to the console #70

phanhaiquang opened this issue Oct 28, 2013 · 10 comments
Milestone

Comments

@phanhaiquang
Copy link

I execute launchy in rails console
Launchy.open( "http://www.ruby-lang.org")
=> #< Thread:0x0000000b89b218 sleep >

I expect it to open in a browser, but nothing happens.
The thread is dead.

So, I executed launchy directly from Linux console. Below is result

launchy -d http://www.ruby-lang.org/

LAUNCHY_DEBUG: URI parsing pass 1 : http://www.ruby-lang.org/ -> {:scheme=>"http", :user=>nil, :password=>nil, :host=>"www.ruby-lang.org", :port=>nil, :path=>"/", :query=>nil, :fragment=>nil}
LAUNCHY_DEBUG: Checking if class Launchy::Application::Browser is the one for handles?(http://www.ruby-lang.org/)}
LAUNCHY_DEBUG: Checking if class Launchy::Detect::HostOsFamily::Windows is the one for matches?(linux-gnu)}
LAUNCHY_DEBUG: Checking if class Launchy::Detect::HostOsFamily::Darwin is the one for matches?(linux-gnu)}
LAUNCHY_DEBUG: Checking if class Launchy::Detect::HostOsFamily::Nix is the one for matches?(linux-gnu)}
LAUNCHY_DEBUG: Checking if class Launchy::Detect::RubyEngine::Mri is the one for is_current_engine?(ruby)}
LAUNCHY_DEBUG: Checking if class Launchy::Detect::HostOsFamily::Windows is the one for matches?(linux-gnu)}
LAUNCHY_DEBUG: Checking if class Launchy::Detect::HostOsFamily::Darwin is the one for matches?(linux-gnu)}
LAUNCHY_DEBUG: Checking if class Launchy::Detect::HostOsFamily::Nix is the one for matches?(linux-gnu)}
LAUNCHY_DEBUG: Checking if class Launchy::Detect::RubyEngine::Mri is the one for is_current_engine?(ruby)}
LAUNCHY_DEBUG: Checking if class Launchy::Detect::NixDesktopEnvironment::Kde is the one for is_current_desktop_environment?()}
LAUNCHY_DEBUG: Checking if class Launchy::Detect::NixDesktopEnvironment::Gnome is the one for is_current_desktop_environment?()}
LAUNCHY_DEBUG: Checking if class Launchy::Detect::NixDesktopEnvironment::Xfce is the one for is_current_desktop_environment?()}
LAUNCHY_DEBUG: Launchy::Application : found executable /usr/bin/xprop
LAUNCHY_DEBUG: Checking if class Launchy::Detect::NixDesktopEnvironment::Fluxbox is the one for is_current_desktop_environment?()}
LAUNCHY_DEBUG: Current Desktop environment not found. Please rerun with environment variable LAUNCHY_DEBUG=true or the '-d' commandline option and file a bug at https://github.com/copiousfreetime/launchy/issues/new
LAUNCHY_DEBUG: Launchy::Application : found executable /usr/bin/xdg-open
LAUNCHY_DEBUG: Launchy::Application::Browser : possibility : open
LAUNCHY_DEBUG: Launchy::Application::Browser : possibility : /usr/bin/xdg-open
LAUNCHY_DEBUG: Launchy::Application::Browser : Using browser value 'open'
LAUNCHY_DEBUG: wet_run: before exec in child process
LAUNCHY_DEBUG: commandline_normalized => open http://www.ruby-lang.org/
Couldn't get a file descriptor referring to the console

Could you please guide me how to config or fix the issue ?

Thank you very much !

@copiousfreetime
Copy link
Owner

Hi @phanhaiquang, thank you filing this bug. Can you please tell me the following?

  1. What versions of linux you are using
  2. What is your desktop environment / window manager ?
  3. What version of MRI?

I should be able to figure out where to go go next based upon that.

enjoy,

-jeremy

@phanhaiquang
Copy link
Author

Hi @copiousfreetime,

Thanks much for prompt feedback.
The information is as below

  1. Linux Mint 15 Olivia
  2. Below is result of the command "wmctrl -m | egrep Name"
    Name: Marco
  3. "ruby -v" shows
    ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-linux]

Thanks,

@copiousfreetime
Copy link
Owner

Hi @phanhaiquang

Thanks for the info, I'll dig in in the next day or two and figure this out.

enjoy,

@copiousfreetime
Copy link
Owner

@phanhaiquang is xdg-open an available application on your system?

@phanhaiquang
Copy link
Author

"xdg-open" was installed to my system already.
Its version is "1.0.2".

@copiousfreetime
Copy link
Owner

Thanks, I think I see the direction of the solution.

@phanhaiquang
Copy link
Author

@copiousfreetime It is great 👍
Wish to get your patch soon... :D

@copiousfreetime
Copy link
Owner

Version 2.4.0 has been released including a fix for this. Please verify.

@phanhaiquang
Copy link
Author

@copiousfreetime Sorry for my lateness.
Version 2.4.0 works, thank you very much for your fix 👍

@copiousfreetime
Copy link
Owner

@phanhaiquang excellent! glad to be of service. Please let me know when you find the next bug 😄

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

No branches or pull requests

2 participants