Re: [GNC] Where is config-user.scm supposed to be under Linux

2023-07-04 Thread Geert Janssens
Op dinsdag 4 juli 2023 01:32:09 CEST schreef Robert Heller:
>
> config-user.scm is only needed if you are loading user-supplied Scheme.
> 
> It belongs in $HOME/.config/gnucash (appearently).  The Wiki is vauge and
> confusing.  Doing a gnucash --paths helped.
> 
> > $ locate config-user.scm
> > $

That page should be treated as a key to resolve pathnames. As they are 
different on each 
platform, you have to recursively assemble the answer yourself.

Easiest is to start from the file you want to store somewhere. In your initial 
mail you 
mentioned "config.user". If you search for that file name on the wiki page, 
you'll find a note 
mentioning this file has been renamed to "config-user.scm" in the subsection 
"In 
GNC_CONFIG_HOME" of section "Files". So you now know your file should be named 
"config-
user.scm" and that it goes in GNC_CONFIG_HOME (whatever that means).

To resolve that, you can look in the page index for GNC_CONFIG_HOME (it has its 
own 
section). In that section you will learn GNC_CONFIG_HOME on linux resolves to 
"USER_CONFIG_HOME/gnucash". Again with whathever USER_CONFIG_HOME may mean.

To continue resolving the path you can click directly on "USER_CONFIG_HOME" to 
learn that 
on linux that's equivalent to "$HOME/.config".

Putting that all together then yields

$HOME/.config/gnucash.config-user.scm

Regards,

Geert
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Where is config-user.scm supposed to be under Linux

2023-07-03 Thread Robert Heller
At Mon, 3 Jul 2023 16:04:23 -0400 Jean-David Beyer  
wrote:

> 
> On 7/3/23 15:28, David H wrote:
> > Sure is, which is why I phrased my reply as more of a question :-)  Sorry I
> > should have suggested doing "Help >> About" - the popup shows a lot of
> > config file locations and might be a better guide
> > 
> > Cheers David H.
> > 
> > 
> > On Mon, 3 Jul 2023 at 21:26, Robert Heller  wrote:
> > 
> >> At Mon, 3 Jul 2023 11:28:18 +1000 David H  wrote:
> >>
> >>>
> >>> Hi Robert,
> >>>
> >>> https://wiki.gnucash.org/wiki/Configuration_Locations doesn't help ?
> >>
> >> Nope.  At least it doesn't help as far as I can tell.  It is a bit
> >> confusing
> >> though.  It talks about $HOME/.gnucash and $HOME/.local/share/gnucash and
> >> I am
> >> not totally sure which is correct for V4.14.  I have determined that
> >> $HOME/.local/share/gnucash/ is used for stylesheets-2.0, since that file
> >> in
> >> that location gets updated after I fire up gnucash and exit.  It just
> >> doesn't
> >> appear the config-user.scm ever gets loaded.
> >>
> >>>
> >>> Cheers David H.
> >>>
> 
> Well, I am running Red Hat Enterprise Linux release 8.8 (Ootpa) and
> GnuCash
> Version: 4.2
> Build ID: 4.2+(2020-09-26)
> Finance::Quote: -
> 
> It seems config-user.scm is nowhere on my machine. Yet Gnucash seems to 
> work just fine.

config-user.scm is only needed if you are loading user-supplied Scheme.

It belongs in $HOME/.config/gnucash (appearently).  The Wiki is vauge and 
confusing.  Doing a gnucash --paths helped.

> 
> $ locate config-user.scm
> $
> 
> 
> 
> 

-- 
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software-- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
hel...@deepsoft.com   -- Webhosting Services
 
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Where is config-user.scm supposed to be under Linux

2023-07-03 Thread David H
Optional file to extend Gnucash, if it's not there you haven't bothered
to create one and Gnucash will work fine without one ?

Cheers David H.

In GNC_CONFIG_HOMEconfig-user.scmthis file is the entry point to extend
GnuCash by means of the guile scripting language. It's most often used to
load additional reports but is not restricted to only that.Filename ChangeUp
to 2.6 the file was named config-user only!gtk-3.0.csslike GTK_CONFIG_HOME
's
gtk.css this file can be used to manipulate styling for GTK widgets. Any
css changes in this file will override overlapping style info in gtk.css
(and hence the current theme as well).The difference between
GTK_CONFIG_HOME's gtk.css and GNC_CONFIG_HOME's gtk-3.0.css is subtle:
gtk-3.0.css will *only affect GnuCash* whilegtk.css may also affect *all
other GTK-based applications* on your system (for example gimp).log.conf
via this file you can
manipulate how much information GnuCash will write to a log file. By
default this is pretty mild. To help developers in debugging problems the
verbosity can be increased.In DOT_GNUCASH_DIR

All files and directories found in GNC_CONFIG_HOME
 and
GNC_DATA_HOME
, with
one exception: config-user.scm is called config.user in 2.6 and before.

On Tue, 4 Jul 2023 at 06:05, Jean-David Beyer via gnucash-user <
gnucash-user@gnucash.org> wrote:

> On 7/3/23 15:28, David H wrote:
> > Sure is, which is why I phrased my reply as more of a question :-)
> Sorry I
> > should have suggested doing "Help >> About" - the popup shows a lot of
> > config file locations and might be a better guide
> >
> > Cheers David H.
> >
> >
> > On Mon, 3 Jul 2023 at 21:26, Robert Heller  wrote:
> >
> >> At Mon, 3 Jul 2023 11:28:18 +1000 David H  wrote:
> >>
> >>>
> >>> Hi Robert,
> >>>
> >>> https://wiki.gnucash.org/wiki/Configuration_Locations doesn't help ?
> >>
> >> Nope.  At least it doesn't help as far as I can tell.  It is a bit
> >> confusing
> >> though.  It talks about $HOME/.gnucash and $HOME/.local/share/gnucash
> and
> >> I am
> >> not totally sure which is correct for V4.14.  I have determined that
> >> $HOME/.local/share/gnucash/ is used for stylesheets-2.0, since that file
> >> in
> >> that location gets updated after I fire up gnucash and exit.  It just
> >> doesn't
> >> appear the config-user.scm ever gets loaded.
> >>
> >>>
> >>> Cheers David H.
> >>>
>
> Well, I am running Red Hat Enterprise Linux release 8.8 (Ootpa) and
> GnuCash
> Version: 4.2
> Build ID: 4.2+(2020-09-26)
> Finance::Quote: -
>
> It seems config-user.scm is nowhere on my machine. Yet Gnucash seems to
> work just fine.
>
> $ locate config-user.scm
> $
>
>
>
>
> --
>.~.  Jean-David Beyer
>/V\  Shrewsbury, New Jersey
>   /( )\ Red Hat Enterprise Linux
>   ^^-^^ up 1 week, 6 days, 2 hours, 11 minutes
>
> ___
> gnucash-user mailing list
> gnucash-user@gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Where is config-user.scm supposed to be under Linux

2023-07-03 Thread Jean-David Beyer via gnucash-user

On 7/3/23 15:28, David H wrote:

Sure is, which is why I phrased my reply as more of a question :-)  Sorry I
should have suggested doing "Help >> About" - the popup shows a lot of
config file locations and might be a better guide

Cheers David H.


On Mon, 3 Jul 2023 at 21:26, Robert Heller  wrote:


At Mon, 3 Jul 2023 11:28:18 +1000 David H  wrote:



Hi Robert,

https://wiki.gnucash.org/wiki/Configuration_Locations doesn't help ?


Nope.  At least it doesn't help as far as I can tell.  It is a bit
confusing
though.  It talks about $HOME/.gnucash and $HOME/.local/share/gnucash and
I am
not totally sure which is correct for V4.14.  I have determined that
$HOME/.local/share/gnucash/ is used for stylesheets-2.0, since that file
in
that location gets updated after I fire up gnucash and exit.  It just
doesn't
appear the config-user.scm ever gets loaded.



Cheers David H.



Well, I am running Red Hat Enterprise Linux release 8.8 (Ootpa) and
GnuCash
Version: 4.2
Build ID: 4.2+(2020-09-26)
Finance::Quote: -

It seems config-user.scm is nowhere on my machine. Yet Gnucash seems to 
work just fine.


$ locate config-user.scm
$




--
  .~.  Jean-David Beyer
  /V\  Shrewsbury, New Jersey
 /( )\ Red Hat Enterprise Linux
 ^^-^^ up 1 week, 6 days, 2 hours, 11 minutes

___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Where is config-user.scm supposed to be under Linux

2023-07-03 Thread David H
Sure is, which is why I phrased my reply as more of a question :-)  Sorry I
should have suggested doing "Help >> About" - the popup shows a lot of
config file locations and might be a better guide

Cheers David H.


On Mon, 3 Jul 2023 at 21:26, Robert Heller  wrote:

> At Mon, 3 Jul 2023 11:28:18 +1000 David H  wrote:
>
> >
> > Hi Robert,
> >
> > https://wiki.gnucash.org/wiki/Configuration_Locations doesn't help ?
>
> Nope.  At least it doesn't help as far as I can tell.  It is a bit
> confusing
> though.  It talks about $HOME/.gnucash and $HOME/.local/share/gnucash and
> I am
> not totally sure which is correct for V4.14.  I have determined that
> $HOME/.local/share/gnucash/ is used for stylesheets-2.0, since that file
> in
> that location gets updated after I fire up gnucash and exit.  It just
> doesn't
> appear the config-user.scm ever gets loaded.
>
> >
> > Cheers David H.
> >
> >
> >
> > On Mon, 3 Jul 2023 at 10:50 am, Robert Heller 
> wrote:
> >
> > > Which directory should config-user.scm be in?
> > >
> > > $HOME/.local/share/gnucash
> > > OR
> > > $HOME/.gnucash
> > >
> > > This is for Version 4.14, build under Linux (Ubuntu 22.04).
> > >
> > > I am not able to tell if the file is being loaded.  From what I can
> tell
> > > it is
> > > not loading config-user.scm.  This is the file name the wiki says to
> put
> > > user
> > > scheme code in, but I am doubtful about that. Is this really the
> correct
> > > file?
> > > I am not getting any indication that it is being loaded, not even
> errors...
> > >
> > > --
> > > Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
> > > Deepwoods Software-- Custom Software Services
> > > http://www.deepsoft.com/  -- Linux Administration Services
> > > hel...@deepsoft.com   -- Webhosting Services
> > >
> > > ___
> > > gnucash-user mailing list
> > > gnucash-user@gnucash.org
> > > To update your subscription preferences or to unsubscribe:
> > > https://lists.gnucash.org/mailman/listinfo/gnucash-user
> > > -
> > > Please remember to CC this list on all your replies.
> > > You can do this by using Reply-To-List or Reply-All.
> > >
> >
> >
>
> --
> Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
> Deepwoods Software-- Custom Software Services
> http://www.deepsoft.com/  -- Linux Administration Services
> hel...@deepsoft.com   -- Webhosting Services
>
>
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Where is config-user.scm supposed to be under Linux

2023-07-03 Thread Robert Heller
At Mon,  3 Jul 2023 07:26:39 -0400 (EDT) Robert Heller  
wrote:

> 
> At Mon, 3 Jul 2023 11:28:18 +1000 David H  wrote:
> 
> > 
> > Hi Robert,
> > 
> > https://wiki.gnucash.org/wiki/Configuration_Locations doesn't help ?
> 
> Nope.  At least it doesn't help as far as I can tell.  It is a bit confusing 
> though.  It talks about $HOME/.gnucash and $HOME/.local/share/gnucash and I 
> am 
> not totally sure which is correct for V4.14.  I have determined that 
> $HOME/.local/share/gnucash/ is used for stylesheets-2.0, since that file in 
> that location gets updated after I fire up gnucash and exit.  It just doesn't 
> appear the config-user.scm ever gets loaded.

OK, running "gnucash --paths" on the command line reveals another location: 
$HOME/.config/gnucash, putting config-user.scm there seems to get it loaded, 
but I am getting the message:

WARNING: Use of `load' in declarative module (gnucash utilities).  Add 
#:declarative? #f to your define-module invocation.

What does this mean?

config-user.scm contains:

(display "Hello World (.config/gnucash)")
(newline)
(load "/home/heller/gnucash/dws-stylesheet.scm")
(let ((template (gnc:html-style-sheet-template-find "DWS")))
  (if template 
(let ((options ((gnc:html-style-sheet-template-options-generator 
template

 (gnc:restore-html-style-sheet "Deepwoods Software Stylesheet" "DWS" options


/home/heller/gnucash/dws-stylesheet.scm starts with:


(define-module (gnucash report stylesheets DWS))

(use-modules (gnucash engine))
(use-modules (gnucash utilities))
(use-modules (gnucash core-utils))
(use-modules (gnucash app-utils))
(use-modules (gnucash report))
(use-modules (gnucash html))

and ends with:


(gnc:define-html-style-sheet
 'version 3.0
 'name (N_ "DWS")
 'renderer dws-renderer
 'options-generator dws-options)

(gnc:make-html-style-sheet "DWS" (N_ "DWS"))

Most of this file is just copied from 

.../gnucash-4.14/gnucash/report/stylesheets/footer.scm

with some added options added to the options function and some rendering code 
added to the renderer function.

What am I missing?

I'm beginning to think adding custom code is going to require hacking directly
on the source code and re-compiling. Really? (I may end up doing that anyway.)

> 
> > 
> > Cheers David H.
> > 
> > 
> > 
> > On Mon, 3 Jul 2023 at 10:50 am, Robert Heller  wrote:
> > 
> > > Which directory should config-user.scm be in?
> > >
> > > $HOME/.local/share/gnucash
> > > OR
> > > $HOME/.gnucash
> > >
> > > This is for Version 4.14, build under Linux (Ubuntu 22.04).
> > >
> > > I am not able to tell if the file is being loaded.  From what I can tell
> > > it is
> > > not loading config-user.scm.  This is the file name the wiki says to put
> > > user
> > > scheme code in, but I am doubtful about that. Is this really the correct
> > > file?
> > > I am not getting any indication that it is being loaded, not even 
> > > errors...
> > >
> > > --
> > > Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
> > > Deepwoods Software-- Custom Software Services
> > > http://www.deepsoft.com/  -- Linux Administration Services
> > > hel...@deepsoft.com   -- Webhosting Services
> > >
> > > ___
> > > gnucash-user mailing list
> > > gnucash-user@gnucash.org
> > > To update your subscription preferences or to unsubscribe:
> > > https://lists.gnucash.org/mailman/listinfo/gnucash-user
> > > -
> > > Please remember to CC this list on all your replies.
> > > You can do this by using Reply-To-List or Reply-All.
> > >
> > 
> > 
> 

-- 
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software-- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
hel...@deepsoft.com   -- Webhosting Services
   
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Where is config-user.scm supposed to be under Linux

2023-07-03 Thread Robert Heller
At Mon, 3 Jul 2023 11:28:18 +1000 David H  wrote:

> 
> Hi Robert,
> 
> https://wiki.gnucash.org/wiki/Configuration_Locations doesn't help ?

Nope.  At least it doesn't help as far as I can tell.  It is a bit confusing 
though.  It talks about $HOME/.gnucash and $HOME/.local/share/gnucash and I am 
not totally sure which is correct for V4.14.  I have determined that 
$HOME/.local/share/gnucash/ is used for stylesheets-2.0, since that file in 
that location gets updated after I fire up gnucash and exit.  It just doesn't 
appear the config-user.scm ever gets loaded.

> 
> Cheers David H.
> 
> 
> 
> On Mon, 3 Jul 2023 at 10:50 am, Robert Heller  wrote:
> 
> > Which directory should config-user.scm be in?
> >
> > $HOME/.local/share/gnucash
> > OR
> > $HOME/.gnucash
> >
> > This is for Version 4.14, build under Linux (Ubuntu 22.04).
> >
> > I am not able to tell if the file is being loaded.  From what I can tell
> > it is
> > not loading config-user.scm.  This is the file name the wiki says to put
> > user
> > scheme code in, but I am doubtful about that. Is this really the correct
> > file?
> > I am not getting any indication that it is being loaded, not even errors...
> >
> > --
> > Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
> > Deepwoods Software-- Custom Software Services
> > http://www.deepsoft.com/  -- Linux Administration Services
> > hel...@deepsoft.com   -- Webhosting Services
> >
> > ___
> > gnucash-user mailing list
> > gnucash-user@gnucash.org
> > To update your subscription preferences or to unsubscribe:
> > https://lists.gnucash.org/mailman/listinfo/gnucash-user
> > -
> > Please remember to CC this list on all your replies.
> > You can do this by using Reply-To-List or Reply-All.
> >
> 
> 

-- 
Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
Deepwoods Software-- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
hel...@deepsoft.com   -- Webhosting Services

___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Where is config-user.scm supposed to be under Linux

2023-07-02 Thread David H
Hi Robert,

https://wiki.gnucash.org/wiki/Configuration_Locations doesn’t help ?

Cheers David H.



On Mon, 3 Jul 2023 at 10:50 am, Robert Heller  wrote:

> Which directory should config-user.scm be in?
>
> $HOME/.local/share/gnucash
> OR
> $HOME/.gnucash
>
> This is for Version 4.14, build under Linux (Ubuntu 22.04).
>
> I am not able to tell if the file is being loaded.  From what I can tell
> it is
> not loading config-user.scm.  This is the file name the wiki says to put
> user
> scheme code in, but I am doubtful about that. Is this really the correct
> file?
> I am not getting any indication that it is being loaded, not even errors...
>
> --
> Robert Heller -- Cell: 413-658-7953 GV: 978-633-5364
> Deepwoods Software-- Custom Software Services
> http://www.deepsoft.com/  -- Linux Administration Services
> hel...@deepsoft.com   -- Webhosting Services
>
> ___
> gnucash-user mailing list
> gnucash-user@gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.