From c30e0c071ec1209b1564742fd8dfeb11030b11b6 Mon Sep 17 00:00:00 2001 From: chrisparker126 Date: Thu, 8 Apr 2010 15:51:10 +0000 Subject: [PATCH] added gpg initialization for autologin - your friends are not authenticated if not git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2692 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- retroshare-gui/src/main.cpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/retroshare-gui/src/main.cpp b/retroshare-gui/src/main.cpp index e2f4b0d0c..c7adc4909 100644 --- a/retroshare-gui/src/main.cpp +++ b/retroshare-gui/src/main.cpp @@ -116,8 +116,18 @@ int main(int argc, char *argv[]) } else { - // true: note auto-login is active - RsInit::LoadCertificates(true); + + std::string preferredId, gpgId, gpgName, gpgEmail, sslName; + RsInit::getPreferedAccountId(preferredId); + + if (RsInit::getAccountDetails(preferredId, + gpgId, gpgName, gpgEmail, sslName)) + { + RsInit::SelectGPGAccount(gpgId); + } + + // true: note auto-login is active + RsInit::LoadCertificates(true); } rsicontrol->StartupRetroShare();