bcicen / slackcat

CLI utility to post files and command output to slack
http://slackcat.chat
MIT License
1.22k stars 57 forks source link

Unable to configure on headless system #36

Closed philipsd6 closed 8 years ago

philipsd6 commented 8 years ago

Running on a headless system with only the links text browser available:

$ slackcat --configure
slackcat Creating token request for Slackcat

But no browser pops up, no URL returned to visit manually on my workstation, so I'm unable to complete the OAuth process.

bcicen commented 8 years ago

Thanks for the feedback @philipsd6. xdg-open is used in attempting to open the OAuth URL in a browser; however, it should print the URL as a fallback.

Can you try xdg-open http://slackcat.chat from the same system and post the result?

philipsd6 commented 8 years ago
$ xdg-open http://slackcat.chat

That command launches the website via links2 on my system, as expected.

bcicen commented 8 years ago

Thanks, I was able to replicate as well. Aside from running within a subprocess, I'm not sure there's any way to leverage a text-browser during the configuration process.

I've updated the latest release to always output the OAuth url, regardless of xdg-open exit code.