bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] running commands at startup


From: Jim Segrave
Subject: Re: [Bug-gnubg] running commands at startup
Date: Wed, 15 Nov 2006 17:17:22 +0100
User-agent: mutt-ng/devel-r804 (FreeBSD)

On Wed 15 Nov 2006 (13:07 -0000), Ian Shaw wrote:
> 
> From:  Christian Anthon Sent: 15 November 2006 11:08
> > 
> > this post is (I suppose) from Jon in the gammonline forum 
> > about how to run a default command script at startup:
> > 
> > Re: Default gnubg settings
> > 
> > Posted By: Jon
> > Date: Wednesday, 15 November 2006, at 1:10 a.m.
> > 
> > In Response To: Re: Default gnubg settings (Chase)
> > 
> > 2) Yes - put any commands you like in a file called .gnubgrc 
> > in the same place as the .gnubgautorc settings file and it 
> > should work...
> > 
> > However that doesn't quite work as the gtk interface is not 
> > finished when the script is loaded. For example, put the 
> > following in .gnubgrc
> > 
> > new session
> > 
> > and gnubg starts as expected when the user gets the first 
> > roll, but segfaults after a bunch of warnings when gnubg wins 
> > the initial roll.
> > 
> > Perhaps we could move the loading of the script til just 
> > before gtk_main(), but I'm not sure if this has implications 
> > for other things you could do with .gnubgrc.
> > 
> 
> The no gui version supports piping in a filename as a command file to be
> loaded. Why doesn't the gui version?

It does, but when it reaches the end of the comand file, it exits. I
just tested loading an .sgf file, showing the statistics dialog, then
clearing the analysis and exporting the match as a .mat file:


address@hidden:/home/jes$ t /tmp/gcmd 
load mat   /tmp/1190329.sgf
sh statist mat
clear analysis mat
export mat mat /tmp/fred.mat

This ran, showed the statistics, when closed, it saved the .mat file,
then exited.


-- 
Jim Segrave           address@hidden





reply via email to

[Prev in Thread] Current Thread [Next in Thread]