assumer icon indicating copy to clipboard operation
assumer copied to clipboard

xdg-open call fails in non-desktop environments

Open colinross opened this issue 9 years ago • 1 comments

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

colinross avatar Jun 21 '16 19:06 colinross

@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?

pbnj avatar Sep 15 '16 23:09 pbnj