connect early.

if that failed, it failed early, before user input anything.
use File::XDG for its data_home  convention.