mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
2004-01-21 Christian Stimming <stimming@tuhh.de>
* src/import-export/hbci/gnc-hbci-utils.c: Set application log directory, needs more work. * src/import-export/hbci/druid-hbci-utils.c: More work for openhbci2 support. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9801 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
2e89c8f672
commit
d0beccbd88
@ -275,7 +275,7 @@ gnc_processOutboxResponse(HBCI_API *api, HBCI_Outbox *outbox,
|
||||
|
||||
g_assert(api);
|
||||
g_assert(outbox);
|
||||
g_assert(accountlist);
|
||||
/*g_assert(accountlist);*/
|
||||
|
||||
response = HBCI_Outbox_response(outbox);
|
||||
n=GWEN_DB_GetFirstGroup(response);
|
||||
|
@ -27,6 +27,7 @@
|
||||
#include <errno.h>
|
||||
#include <openhbci2.h>
|
||||
#include <openhbci2/error.h>
|
||||
#include <gwenhywfar/directory.h>
|
||||
|
||||
#include "gnc-ui.h"
|
||||
#include "gnc-hbci-kvp.h"
|
||||
@ -123,6 +124,23 @@ gnc_hbci_api_new (const char *filename, gboolean allowNewFile,
|
||||
(gnc_hbci_get_book_account_list(gnc_get_current_book ()),
|
||||
api);
|
||||
|
||||
{
|
||||
/* FIXME FIXME FIXME : Use a sane directory here. FIXME FIXME
|
||||
FIXME FIXME FIXME FIXME FIXME FIXME FIXME it's a BUUUUG
|
||||
uuuuh-ooh BUUUUG */
|
||||
char homebuffer[256];
|
||||
const char *dirname = "/.gnucash/hbci";
|
||||
// create default path
|
||||
if (GWEN_Directory_GetHomeDirectory(homebuffer,
|
||||
sizeof(homebuffer)-strlen(dirname))) {
|
||||
fprintf(stderr, "Buffer for home path too small");
|
||||
return NULL;
|
||||
}
|
||||
strcat(homebuffer, dirname);
|
||||
/*fprintf(stderr, "Setting log dir to %s\n", homebuffer);*/
|
||||
HBCI_Hbci_setApplicationDataDir(HBCI_API_Hbci(api), homebuffer);
|
||||
}
|
||||
|
||||
return api;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user