From bf2ec079fcfc4e21df9c89260c001e711d225460 Mon Sep 17 00:00:00 2001 From: ubbo Date: Sun, 10 Aug 2008 15:18:32 +0000 Subject: fix gpg.exe path on windows git-svn-id: http://cpunk.de/svn/src/gpg4usb@129 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- context.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'context.cpp') diff --git a/context.cpp b/context.cpp index 67e931b..9db8aad 100644 --- a/context.cpp +++ b/context.cpp @@ -64,16 +64,11 @@ Context::Context() * also lin/win must be checked, for calling gpg.exe if needed */ #ifdef _WIN32 - QString gpgBin = appPath + "\bin\gpg.exe"; - QString gpgKeys = appPath + "\keydb"; - /*err = gpgme_ctx_set_engine_info (m_ctx, GPGME_PROTOCOL_OpenPGP, - "bin/gpg.exe", "keydb");*/ + QString gpgBin = appPath + "/bin/gpg.exe"; #else QString gpgBin = appPath + "/bin/gpg"; - QString gpgKeys = appPath + "/keydb"; - /*err = gpgme_ctx_set_engine_info (m_ctx, GPGME_PROTOCOL_OpenPGP, - "./bin/gpg", "./keydb");*/ #endif + QString gpgKeys = appPath + "/keydb"; err = gpgme_ctx_set_engine_info(m_ctx, GPGME_PROTOCOL_OpenPGP, gpgBin.toAscii().constData(), gpgKeys.toAscii().constData()); -- cgit v1.2.3