Skip to content

Launches in Chrome and Firefox #53

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
lasseebert opened this issue Oct 10, 2012 · 8 comments
Closed

Launches in Chrome and Firefox #53

lasseebert opened this issue Oct 10, 2012 · 8 comments
Labels
Milestone

Comments

@lasseebert
Copy link

When I use Launchy it opens the URL in both Google Chrome and in Firefox. Google Chrome is my default browser.

Below is the debug output.

The output states that my desktop environment is not found - I run Fluxbox 1.3.2 on Ubuntu 12.04.

$ launchy -d https://github.com/copiousfreetime/launchy
LAUNCHY_DEBUG: Checking if class Launchy::Application::Browser is the one for handles?(https://github.com/copiousfreetime/launchy)}
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: 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 : /usr/bin/xdg-open
LAUNCHY_DEBUG: Launchy::Application::Browser : Using browser value '/usr/bin/xdg-open'
LAUNCHY_DEBUG: commandline_normalized => /usr/bin/xdg-open https://github.com/copiousfreetime/launchy
$ Created new window in existing browser session.
@copiousfreetime
Copy link
Owner

I think this is 2 issues:

  1. Launchy is not detecting fluxbox and saying so. To help fix this, can you see if there are any FLUXBOX specific environment variables or something I may be able to use to update launchy wrt fluxbox?
  2. Since Launchy is unable to do something specific for fluxbox, it is defaulting to xdg-open. It would appear that xdg-open is opening the url in both browsers.

Can you attempt, from the commanline, the following line and see if it produces the same result as Launchy?

/usr/bin/xdg-open https://github.com/copiousfreetime/launchy

@lasseebert
Copy link
Author

Thanks for the response.

  1. The only fluxbox specific variable I found was $DESKTOP_SESSION which is set to fluxbox
  2. Thanks for the hint. I fixed that by uninstalling Chrome and install Chrome Beta (I saw that this issue was recently fixed in Chrome). Now both xdg-open and launchy opens the URL in Chrome alone.

@copiousfreetime
Copy link
Owner

Perfect, good to know. I'll add a desktop environment item for fluxbox so the warning message doesn't show up normally.

@lasseebert
Copy link
Author

Thanks for the fix :)

@copiousfreetime
Copy link
Owner

Sorry I took so long.

@lasseebert
Copy link
Author

No worries, keep up the good work :)

@copiousfreetime
Copy link
Owner

I'll do my best :-)

@copiousfreetime
Copy link
Owner

New release pushed v2.2.0

jsonn pushed a commit to jsonn/pkgsrc that referenced this issue Feb 15, 2013
= Launchy Changlog
== Version 2.2.0 - 2013-02-06

* Change XFCE detection to not depend on grep (copiousfreetime/launchy#52 -
  thanks bogdan)
* Suppress forked process output (copiousfreetime/launchy#51)
* Display help/usage if no url is given (copiousfreetime/launchy#54)
* Detect the fluxbox environment (copiousfreetime/launchy#53)
* Automatically detect 'http' url's if they are missing the 'http://'
  (copiousfreetime/launchy#55)
* Update to latest project management rake tasks
jperkin pushed a commit to TritonDataCenter/pkgsrc-legacy that referenced this issue Dec 9, 2013
= Launchy Changlog
== Version 2.2.0 - 2013-02-06

* Change XFCE detection to not depend on grep (copiousfreetime/launchy#52 -
  thanks bogdan)
* Suppress forked process output (copiousfreetime/launchy#51)
* Display help/usage if no url is given (copiousfreetime/launchy#54)
* Detect the fluxbox environment (copiousfreetime/launchy#53)
* Automatically detect 'http' url's if they are missing the 'http://'
  (copiousfreetime/launchy#55)
* Update to latest project management rake tasks
jperkin pushed a commit to TritonDataCenter/pkgsrc-legacy that referenced this issue Mar 14, 2014
= Launchy Changlog
== Version 2.2.0 - 2013-02-06

* Change XFCE detection to not depend on grep (copiousfreetime/launchy#52 -
  thanks bogdan)
* Suppress forked process output (copiousfreetime/launchy#51)
* Display help/usage if no url is given (copiousfreetime/launchy#54)
* Detect the fluxbox environment (copiousfreetime/launchy#53)
* Automatically detect 'http' url's if they are missing the 'http://'
  (copiousfreetime/launchy#55)
* Update to latest project management rake tasks
jsonn pushed a commit to jsonn/pkgsrc that referenced this issue Oct 11, 2014
= Launchy Changlog
== Version 2.2.0 - 2013-02-06

* Change XFCE detection to not depend on grep (copiousfreetime/launchy#52 -
  thanks bogdan)
* Suppress forked process output (copiousfreetime/launchy#51)
* Display help/usage if no url is given (copiousfreetime/launchy#54)
* Detect the fluxbox environment (copiousfreetime/launchy#53)
* Automatically detect 'http' url's if they are missing the 'http://'
  (copiousfreetime/launchy#55)
* Update to latest project management rake tasks
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants