2017-01-25 GnuCash IRC logs
00:07:57 *** O01eg has quit IRC
01:07:21 *** gncbot has joined #gnucash
01:29:17 *** fell_ has joined #gnucash
01:31:09 *** fell has quit IRC
01:42:34 *** Mechtilde has quit IRC
02:14:53 *** cartsoftware has joined #gnucash
02:17:55 *** cartsoftware has quit IRC
02:36:10 *** cartsoftware has joined #gnucash
03:20:48 *** Mechtilde has joined #gnucash
04:13:47 *** mrklintscher has joined #gnucash
04:19:09 *** RogerM has joined #gnucash
04:20:47 *** RogerM has left #gnucash
05:03:44 *** fabior has joined #gnucash
05:07:48 *** fabior has quit IRC
05:21:00 *** fabior has joined #gnucash
06:18:23 *** ase has joined #gnucash
06:25:43 <ase> Greetings everyone! I need to change default currency on Accounts page, wich is at the bottom in line "$, Grand Total: ....". Playing with currency defaults in GnuCash Preferences does not help. I guess it is Book's default wich was set during creation but i have no idea where to change it now. There is no such option in Book Options (File->Properties).
06:56:13 <Mechtilde> it is part of the account
06:56:29 <Mechtilde> look at the "tutorial and Concepts"
06:56:46 <Mechtilde> there is a chapter about "multiple Currencies2
06:56:48 *** Jimraehl1 has joined #gnucash
06:56:58 <Mechtilde> for you ase
06:58:52 *** Jimraehl1 has quit IRC
07:04:24 <ase> Mechtilde: Thanks for advice! But i have changed default currencies of all acounts and still currency at the bottom in Grand Total is old and didn't change.
07:05:58 <ase> i still hace accounts in old currency, but i have new account in another, and i just want to change that bottom Grand Total line to new currency, I have set new currency everywhere in any option i could and in all TOP accounts. But it still is old
07:08:35 <ase> For example, when i create new book and select some currency as default - it will be in the Grand Total line. But if i want to change it - there is no such option it seems. I Could edit xml file of a book itself but i have no idea wich field to search there
07:19:04 *** fabior has quit IRC
07:31:51 *** mlncn has joined #gnucash
07:32:15 <warlord> ase: that currency is your locale currency..
07:34:36 <ase> warlord: Unfortunately - nope. I have tried all locale options in windows too....
07:35:52 <warlord> ase: did you exit gnucash, change your locale currency, and then restart gnucash? It loads at application start and wont notice if you change the system setting.
07:37:00 <ase> warlord: yes, sure. and changed defaults in different properties to locale or to needed currency whatever. Grand Total currency does not change
07:37:20 <ase> and after any change i was restarting GnuCash and reopening Book
07:42:13 <ase> I did expleriment with creating few new books with different currencies and I can state that currency in Grand Total line of accounts page is one that you select when create a New Book and there is no option to change it later after book is created.
07:42:40 <ase> at least in GnuCash 2.6.15
07:42:42 <Mechtilde> ase, do you change the system settings too?
07:43:07 <ase> yes but it does not depend from system settings it seems at all
07:43:09 <Mechtilde> not only the settings of gnucash
07:43:44 <Mechtilde> it depends on the system settings as warlord wrote
07:47:14 <ase> I wish it would but.. it does not. I am not kidding realy. My current system locale and currency is USA-USD and book was created in Ukraine-UAH currency. and no luck with any oiption to change that Grand Total line currency
07:49:08 *** rickoehn has joined #gnucash
07:49:41 <ase> There is no problem with changing default currencies for new accounts or in reports. but that Grand Total line is not affected by any option in GnuCash or system.
07:50:59 *** wget has quit IRC
07:56:55 <ase> I hope you understand what line I am talking about - that one at Accounts page in the bottom in Summary Bar. In that bar there is only one top line - Grand Total. There are also others for all currencies used in book. But they calculate summary only for one currency but not for the whole book as this Grand Total line
08:02:52 *** mlncn has quit IRC
08:06:56 *** mrklintscher has quit IRC
08:08:04 *** wget has joined #gnucash
08:29:10 *** fabior has joined #gnucash
08:32:12 *** fabior has quit IRC
08:45:31 *** fabior has joined #gnucash
09:05:56 *** fabior has quit IRC
09:16:53 *** fabior has joined #gnucash
09:20:09 *** fabior has quit IRC
09:29:56 *** mlncn has joined #gnucash
09:33:05 *** fabior has joined #gnucash
09:33:15 *** mlncn has quit IRC
09:37:10 *** mrklintscher has joined #gnucash
10:54:33 *** kael has joined #gnucash
10:57:53 *** O01eg has joined #gnucash
11:20:16 *** Mechtilde has quit IRC
11:32:05 *** ChanServ sets mode: +qo warlord warlord
11:32:10 <warlord> @op gncbot
11:32:10 <gncbot> warlord: Error: You don't have the #gnucash,op capability. If you think that you should have this capability, be sure that you are identified before trying again. The 'whoami' command can tell you if you're identified.
11:32:15 *** warlord sets mode: +o gncbot
11:38:28 *** kael has quit IRC
12:30:48 *** fabior has quit IRC
13:17:48 *** cartsoftware has quit IRC
13:26:45 *** Mechtilde has joined #gnucash
13:29:18 *** kael has joined #gnucash
13:34:38 *** kael has quit IRC
14:08:05 *** fabior has joined #gnucash
14:31:34 *** fell_ is now known as fell
14:31:43 *** gncbot sets mode: +o fell
14:44:53 *** jeltsch has joined #gnucash
14:46:32 <jeltsch> When I mount a WebDAV folder via GNOME (using fuse internally) and open a GnuCash file in this folder, no *.LCK and *.LNK files are created. I guess this is dangerous. Why is this so?
14:50:39 <warlord> Probably because it doesn't support the necessary POSIX semantics?
14:56:51 *** cartsoftware has joined #gnucash
15:02:29 *** gjanssens has quit IRC
15:04:23 *** fabior has quit IRC
15:23:36 *** keret has joined #gnucash
15:27:57 <keret> Hi. first I want to say that GnuCash is awesome. Have been using it for years and love it. Question I have: has it ever been talked about developing a web front-end for GnuCash?
15:31:24 <warlord> keret: having a web front end would imply having a web back end. The belief is that joe average user probably doesn't have the skills to set up and maintain a web service.
15:45:44 <keret> Warlord, thanks for your response! That makes sense. So basically the reasoning is that GnuCash will stay a PC application so that it is easy to install and use by most home and small business owners (users of the application).
15:46:09 *** mlncn has joined #gnucash
15:50:37 <warlord> Yes
15:50:51 <warlord> certainly for the next several years.
15:53:57 <keret> Thank you Warlord.
15:55:22 <warlord> you're welcome.
16:05:55 *** fabior has joined #gnucash
16:33:21 *** mlncn has quit IRC
16:34:48 *** Mechtilde has quit IRC
16:35:15 <jeltsch> warlord: Can you elaborate? I mean it is possible to create files on a WebDAV folder.
16:36:16 <jeltsch> GnuCash could still create these files, even if there could be race conditions or whatever. Creating these files and checking for their existence would still be safer than using no protection at all.
16:38:47 <warlord> I think they are created as a link, or something. You can run 'strace' on your gnucash program to see exactly which operations are failing. This also happens with a SAMBA/CIFS filesystem too.
16:39:31 <warlord> (it's been a long while since I looked at the xml file code)
16:50:18 <jeltsch> So you think it actually attempts to create these files, but fails? In this case, I would expect at least a warning from GnuCash.
16:52:11 <jeltsch> warlord: I just checked on an ordinary partition: The *.LCK and *.LNK files are ordinary files of length 0 there.
16:52:26 <jeltsch> So they should be creatable also on a WebDAV share.
16:57:49 *** gncbot has joined #gnucash
16:58:20 *** warlord has joined #gnucash
17:01:13 *** fell sets mode: +o warlord
17:01:32 *** fell sets mode: +o gncbot
17:01:39 <warlord> jeltsch: it's creating a hard link:
17:01:41 <warlord> rc = link (be->lockfile, pathbuf);
17:02:08 <warlord> But if it fails it's not considered an error -- which is why you can access the datafile at all.
17:04:09 <warlord> The LCK file is a regular file; there would be a message in your gnucash.trace file if there's an error creating it.
17:04:26 <jeltsch> I see, the *.LCK and the *.LNK file have the same inode.
17:04:51 <jeltsch> Where is the gnucash.trace file?
17:05:30 <jeltsch> You mean when I run it with strace?
17:06:09 <jeltsch> Still, GnuCash detects that the file on the WebDAV share is already in use, although there are no *.LCK and *.LNK files/links.
17:06:21 <warlord> no, gnucash.trace; probably /tmp
17:06:26 <jeltsch> Maybe it checks for features supported by the file system?
17:06:44 <warlord> Is this an XML file or a SQLIte DB?
17:07:36 <jeltsch> XML.
17:08:27 <jeltsch> /tmp/gnucash.trace is empty.
17:08:37 <jeltsch> So no error apparently?
17:08:53 <warlord> It's not necessarily detecting it's in use -- if it fails it suggests that it's locked.
17:11:18 <jeltsch> Well, opening the file on the WebDAV share the first time does not fail, opening the second time does.
17:11:42 <jeltsch> So there must be at least something different between the two runs of GnuCash.
17:15:02 <warlord> Are the LCK/LNK files still there between runs?
17:18:19 <jeltsch> Well, there are no LCK/LNK files.
17:18:29 <jeltsch> This is the problem (if it is one).
17:19:06 <jeltsch> So if I open a file on a regular device, LCK/LNK files are created, but if I open a file on a WebDAV share, no such files are created.
17:20:13 <jeltsch> If I open a file on a WebDAV share, GnuCash works fine. If I open this file a second time while the first GnuCash instance is still running, the second instance will tell me that this file is already in use.
17:20:18 <jeltsch> This is actually what I want.
17:20:44 <jeltsch> I am just wondering how the second GnuCash instance can know about the file being in use, given that there are no LCK/LNK files.
17:21:04 <jeltsch> What mechanism is it using and how reliable is this mechanism?
17:30:51 <warlord> are you SURE there is no LCK file while the first instance is open?
17:31:16 <warlord> (note that gnucash.trace will be overwritten by the second instance)
17:31:36 <warlord> So run gnucash the first time, by itself, and check gnucash.trace before you run it a second time.
17:32:22 <warlord> Sorry, I gotta run.
17:41:49 *** fabior has quit IRC
18:23:04 *** kael has joined #gnucash
18:27:24 *** kael has quit IRC
19:06:13 *** keret has quit IRC
19:59:14 *** ase|2 has joined #gnucash
20:00:43 *** ase has quit IRC
20:40:01 <warlord> jeltsch: any more luck?
20:42:12 <jeltsch> warlord: Yes, I am sure that there is no LCK file while the first instance is open. And still the second instance detects correctly that there is already an instance running.
20:42:37 <jeltsch> And /tmp/gnucash.trace is empty also before starting the second instance.
20:42:58 <warlord> jchonig: did you look at the gnucash.trace ..... You're on LInux, correct?
20:43:43 <jeltsch> Yes, I am on Linux.
20:44:08 <jeltsch> ls shows 0 Bytes; so there is no need to look at the contents.
20:44:40 <jeltsch> But I can assure you that a cat I have done now does not show anything.
20:45:30 <jeltsch> I am talking about /tmp/gnucash.trace, of course.
20:45:52 <warlord> right.
20:46:18 <warlord> And how are you testing that there's no LCK file on the webdav server?
20:47:28 <jeltsch> I use ls on the respective directory.
20:48:02 <jeltsch> Inside the fuse-mounted WebDAV virtual device.
20:48:34 <warlord> jeltsch: can you check on the webdav server?
20:49:00 <jeltsch> Also no LCK file visible in the browser (through plain HTTP access).
20:49:02 <warlord> The only way that gnucash#2 would claim it's locked is if the filesystem claims the file exists.
20:49:58 <warlord> Basically, this is the code:
20:50:01 <warlord> be->lockfd = g_open (be->lockfile, O_RDWR | O_CREAT | O_EXCL ,
20:50:01 <warlord> S_IRUSR | S_IWUSR);
20:50:01 <warlord> if (be->lockfd < 0)
20:50:16 <warlord> so g_open() is returning a valid file descriptor.
20:50:19 <warlord> (the first time).
20:50:42 <warlord> And the second time it's returning -1 in order to cause the LOCKED state.
20:50:45 <jeltsch> Can it be that this code is not used in certain cases?
20:51:45 <warlord> If "ignore_lock" is passed into the session_begin call.
20:51:56 <jeltsch> I will also test this in a truly shared setting, that is, open the file in a GnuCash instance on my Linux machine and then try to open the same file on my wife’s Windows machine.
20:52:11 <jeltsch> Will hopefully happen tomorrow.
20:53:05 <warlord> okay.
20:57:51 *** kael has joined #gnucash
21:47:14 *** jeltsch has quit IRC
21:56:01 *** To7 has quit IRC
22:10:28 *** rickoehn has quit IRC
22:52:17 *** kael has quit IRC