xboard not reading .Xresources file

Discussions about the WinBoard protocol. Here you can also report bugs and request new features.

Moderators: hgm, Andres Valverde

xboard not reading .Xresources file

Postby LouisZulli » 23 Aug 2011, 14:29

Just built from source under OS X 10.6.8, starting from
Code: Select all
git clone git://git.savannah.gnu.org/xboard.git


When I invoke xboard from the command line (with no ~/.xboardrc), it does not seem to process the contents of my ~/.Xresources or my ~/XBoard.

Any help would be appreciated.
LouisZulli
 
Posts: 7
Joined: 12 Jan 2010, 17:54

Re: xboard not reading .Xresources file

Postby H.G.Muller » 23 Aug 2011, 18:06

What do you have in the .Xresources you expect XBoard to pay attention to? In principle anything handled by X should still be settable from .Xresources (like key bindings).
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: xboard not reading .Xresources file

Postby LouisZulli » 23 Aug 2011, 18:24

According to the man page, command line options for xboard can be placed in ~/.Xresources.

This manual documents version master-20110822 of XBoard.

OPTIONS
This section documents the command-line options to XBoard. You can set
these options in two ways: by typing them on the shell command line you
use to start XBoard, or by setting them as X resources (typically in
your `.Xresources' file). Many of the options cannot be changed while
XBoard is running; others set the initial state of items that can be
changed with the Options menu.

Most of the options have both a long name and a short name. To turn a
boolean option on or off from the command line, either give its long
name followed by the value true or false (`-longOptionName true'), or
give just the short name to turn the option on (`-opt'), or the short
name preceded by `x' to turn the option off (`-xopt'). For options that
take strings or numbers as values, you can use the long or short option
names interchangeably.

Each option corresponds to an X resource with the same name, so if you
like, you can set options in your `.Xresources' file or in a file named
`XBoard' in your home directory. For options that have two names, the
longer one is the name of the corresponding X resource; the short name
is not recognized. To turn a boolean option on or off as an X
resource, give its long name followed by the value true or false
(`XBoard*longOptionName: true').


I see that this is no longer the case, and that /usr/local/etc/xboard.conf and ~/.xboardrc now store preferences.

So the man page needs to be revised. :)
LouisZulli
 
Posts: 7
Joined: 12 Jan 2010, 17:54

Re: xboard not reading .Xresources file

Postby H.G.Muller » 24 Aug 2011, 06:49

Indeed, you are right; this paragraph has to go.

Updating docs is a pain, as there are currently three sets of docs that have to be maintained independently (one for XBoard, and two for WinBoard), some in an extremely cumbersome way (for the WinBoard HTML docs I have to maintain the index and contents by hand).

Arun was looking for a method to unify the XBoard and WinBoard HTML docs (we would then abandon the old WinBoard HLP format), which should be possible now XBoard and WinBoard have almost entirely converged. But it seems this effort has stalled. And I am really not very motivated to put a huge effort in maintaining docs that will be scrapped soon...
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: xboard not reading .Xresources file

Postby LouisZulli » 24 Aug 2011, 15:18

After not using Xboard for several years, I decided to try it again. (Lots of nice improvements. Thanks.) When the program didn't use the Xboard options from my ~/.Xresources file as it did previously, I went to the man page!

I've figured it out now. Thanks.
LouisZulli
 
Posts: 7
Joined: 12 Jan 2010, 17:54


Return to WinBoard development and bugfixing

Who is online

Users browsing this forum: No registered users and 16 guests