diff options
author | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2008-08-10 15:18:32 +0000 |
---|---|---|
committer | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2008-08-10 15:18:32 +0000 |
commit | bf2ec079fcfc4e21df9c89260c001e711d225460 (patch) | |
tree | 9ae3f6c6a582b19bcaa6118f9e8c80e954a47ef5 | |
parent | added version & app-name, use it in about-dialog (diff) | |
download | gpg4usb-bf2ec079fcfc4e21df9c89260c001e711d225460.tar.gz gpg4usb-bf2ec079fcfc4e21df9c89260c001e711d225460.zip |
fix gpg.exe path on windows
git-svn-id: http://cpunk.de/svn/src/gpg4usb@129 34ebc366-c3a9-4b3c-9f84-69acf7962910
-rw-r--r-- | context.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
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()); |