GAM-team / got-your-back

Got Your Back (GYB) is a command line tool for backing up your Gmail messages to your computer using Gmail's API over HTTPS.
https://github.com/GAM-team/got-your-back/wiki
Apache License 2.0
2.56k stars 203 forks source link

GYB doesn't work as it should on headless servers #453

Open farsighter opened 4 months ago

farsighter commented 4 months ago

I've installed the latest version of GYB on Ubuntu 22 headless VPS.

Issue: Despite explicitly specifying that my server is headless without any graphical display (by selecting 'N' at the appropriate prompt) GYB insists to redirect its generated links to a text browser installed on my system which opens itself automatically, instead of simply displaying the links and awaiting further input.

This behavior persists even after disabling the text browser (by renaming its executable). When I do that GYB simply opens another text browser it finds on my system. Although I managed to pass the first steps by disabling all 3 browsers I have (links, elinks, and lynx) I can never complete the last step of granting authorization due to that problem.

By the way the $BROWSER environment variable has always been empty on my system so it isn't clear why GYB still acts like that.

I attempted to replicate thar on a different VPS running Ubuntu 20, only to encounter an identical problem.

It's worth mentioning that I've successfully used GYB many times in the past (once or twice a year for many years) on headless servers without encountering any such issues.