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

Application crashes if you're running it from a headless system #94

Closed
davorb opened this issue Mar 30, 2013 · 6 comments
Closed

Application crashes if you're running it from a headless system #94

davorb opened this issue Mar 30, 2013 · 6 comments

Comments

@davorb
Copy link

davorb commented Mar 30, 2013

I was trying to do t authorize on a system that doesn't have X, or a browser installed and got this.

https://gist.github.com/davorb/f2c764d9255036103904

Is there any other way to add a new account?

@fenhl
Copy link

fenhl commented Mar 30, 2013

t authorize -d or t authorize --display-url should work. This flag causes T to “Display the authorization URL instead of attempting to open it”, according to t help authorize.

@davorb
Copy link
Author

davorb commented Mar 30, 2013

I'm getting this error when I try t authorize --display-url.

@sferik
Copy link
Owner

sferik commented Mar 31, 2013

What version of launchy are you running?

gem list launchy

@davorb
Copy link
Author

davorb commented Mar 31, 2013

2.2.0. I just did gem install t.

@sferik
Copy link
Owner

sferik commented Mar 31, 2013

It looks to me like a bug in launchy. Did you try re-running the command with LAUNCHY_DEBUG=true? You may want to open a new issue here.

@davorb
Copy link
Author

davorb commented Mar 31, 2013

I had a look at the source code, and it's not a bug in launchy. If you have a look at this, you can see that the application crashes due to an exception on line 61 in launchy/browser.rb, that you're not catching (but that you're supposed to).

The error can be fixed on the user's end by setting the $BROWSER system variable.

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

3 participants