[Top][All Lists]

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

Re: [Bug-gnubg] Windows file association

From: Holger
Subject: Re: [Bug-gnubg] Windows file association
Date: Thu, 28 Nov 2002 15:43:59 +0100

At 22:30 27.11.2002 +0100, Nardy Pillards wrote:
>> At 15:27 27.11.2002 -0000, Ian Shaw wrote:
>> >Windows file association works only if the .sgf file is in the same
>> >directory as gnubg.exe.
>The file associations do work for me... but the bearoff database and weights
>are in the Installed Dir (C:\Program Files\gnubg here).
>So GNU Backgammon starts generating a bearoff DB and  can't find the weight
>Meaning: it is usefull to look at an analysed (and/or annotated) match, but
>not to rollout/evaluate/analyse a match.
>(hmmm... well: Yes, the .sgf must be in the Installed Dir at this moment.
>Maybe add Registry Entries?)

It's important that the registry key(s) have the right values. Especially
[HKEY_CLASSES_ROOT\GNUBackgammon\shell\open\command] needs to be paid
special attention to as it contains the command that starts GNUbg.

I'll give an example for GNUbg installed in C:\Program Files\GNUbg:

Start Regedit and either search for "gnubg.exe" or go directly to key
[HKEY_CLASSES_ROOT\GNUBackgammon\shell\open\command]. On the right-hand
side you have to edit the default value (double click). It should be:

"C:\Program Files\GNUbg\gnubg.exe" --datadir "C:\Program Files\GNUbg" "%1"

All three pairs of double quotes are important. And at the end of the
datadir path there shouldn't be a backslash.

I'll also attach a .reg file with these values. It only needs to be
double-clicked and imports its settings into the registry. But only do so
if GNUbg is really installed in the above directory! Else you have to edit
the file.

It should work, but always feel free to ask if it doesn't.



@="Smart Game Format"

@="C:\\Program Files\\GNUbg\\gnubg.exe,0"



@="\"C:\\Program Files\\GNUbg\\gnubg.exe\" --datadir \"C:\\Program 
Files\\GNUbg\" \"%1\""

reply via email to

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