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

xdg-open call fails in non-desktop environments #5

Open
colinross opened this issue Jun 21, 2016 · 1 comment
Open

xdg-open call fails in non-desktop environments #5

colinross opened this issue Jun 21, 2016 · 1 comment

Comments

@colinross
Copy link

Context: the assumer executable
Environment: local/remote non-desktop environment, such as a docker/vagrant container or remote EC2 instance-- specifically any linux or bsd environment without (xdg-utils)[https://www.freedesktop.org/wiki/Software/xdg-utils/] installed.

For non-desktop environments the call to xdg-open will fail.
This occurs if you pass the --gui / -g commandline option, which is compounded by the fact that it is necessary to do so if you wish to retrieve the login url outside of passing the --pry flag and manually inspecting the target_creds object.

@mechcozmo @slietz

@pbnj
Copy link

pbnj commented Sep 15, 2016

@colinross
One thing we can do is wrap the xdg-open call in a begin... rescue... block in Ruby and rescue the exception by throwing the URL to STDOUT.

Do you have an easily replicable scenario to test this for me?

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