mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 14:45:12 -04:00
Merge pull request #1934 from PhenomRetroShare/Fix_AutoLogin
Fix AutoLogin
This commit is contained in:
commit
1d8510069e
5 changed files with 30 additions and 1 deletions
|
@ -327,6 +327,8 @@ INCLUDEPATH *= $${OPENPGPSDK_DIR}
|
|||
PRE_TARGETDEPS *= $${OPENPGPSDK_DIR}/lib/libops.a
|
||||
LIBS *= $${OPENPGPSDK_DIR}/lib/libops.a -lbz2
|
||||
|
||||
################################### HEADERS & SOURCES #############################
|
||||
|
||||
HEADERS += ft/ftchunkmap.h \
|
||||
ft/ftcontroller.h \
|
||||
ft/ftdata.h \
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include "rsloginhandler.h"
|
||||
#include "util/rsdir.h"
|
||||
#include "retroshare/rsinit.h"
|
||||
#include "util/rsdebug.h"
|
||||
|
||||
//#define DEBUG_RSLOGINHANDLER 1
|
||||
|
||||
|
@ -497,8 +498,15 @@ bool RsLoginHandler::enableAutoLogin(const RsPeerId& ssl_id,const std::string& s
|
|||
NULL);
|
||||
|
||||
if (error) {
|
||||
RsErr() << __PRETTY_FUNCTION__
|
||||
<< " Could not store passwd using libsecret with"
|
||||
<< " error.code=" << error->code
|
||||
<< " error.domain=" << error->domain
|
||||
<< " error.message=\"" << error->message << "\"" << std::endl;
|
||||
if (error->code == 2)
|
||||
RsErr() << "Do have a key wallet installed?" << std::endl
|
||||
<< "Like gnome-keyring or other using \"Secret Service\" by DBus." << std::endl;
|
||||
g_error_free (error);
|
||||
std::cerr << "Could not store passwd using libsecret" << std::endl;
|
||||
return false;
|
||||
}
|
||||
std::cout << "Stored passwd " << "************************" << " using libsecret" << std::endl;
|
||||
|
|
|
@ -102,3 +102,8 @@ android-* {
|
|||
CONFIG *= qt
|
||||
QT *= network
|
||||
}
|
||||
|
||||
################################### Pkg-Config Stuff #############################
|
||||
|
||||
LIBS *= $$system(pkg-config --libs $$PKGCONFIG)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue