KGS CGoban2 File Association

    Keywords: Online Go

How do you associate SGF files with the KGS CGoban2 client, particularly the WebStart? version?

Windows XP

Here is what worked for some people who needed to associate SGF files when they were using the Java WebStart? version:

In Windows Explorer, in the Tools menu, select Folder Options. Choose the File Types tab. Find the SGF file type listed. If there is no "Advanced" button associated with that file then go to Create the Open Action below. If there is an Advanced button, poke around in there and save any information for possible later reference.

Delete the SGF file association

Create the Open Action

Make a new file type for the SGF file type. Click "Advanced". Create a new Action "Open". Edit into the program box an action like the following, suitably modified depending on your disk drive letters, your Java version, and your user name:

"C:\Program Files\Java\j2re1.4.2_04\bin\java.exe" -jar "C:\Documents and Settings\Owner\Application Data\Sun\Java\Deployment\javaws\cache\http\Dkgs.kiseido.com\P80\DMjavaBin\RMCgoban.jar" -edit "%1"

Windows 2000

Windows 98

Linux / Unix variants

Create a shell script called cgoban.sh containing the following:

	#!/bin/bash
	if [ "$1" ]; then
		javaws -Xnosplash -open "$1" [ext] http://files.gokgs.com/javaBin/cgoban.jnlp
	else
		javaws -Xnosplash [ext] http://files.gokgs.com/javaBin/cgoban.jnlp
	fi

Make your launcher run this script, and associate it with .sgf files. Whenever you double-click an SGF file from now on, it will load in CGoban.

Mac OS

By itself, the CGoban3 application for Mac OSX does not support opening of SGFs (although it will associate itself anyway). A partially satisfactory workaround has been implemented. You can read about and download it from [ext] this thread here.


Old Text, delete later when this page gets well developed:

In windows, if you know pretty much what you're doing, and it just doesn't seem to associate properly, add the switch -home="c:\dir\where\cgoban\is" to the application line in the file types association for saved go games/sgf files, or whatever it is cgoban calls it exactly. If that makes no sense to you, reinstall the sucker and check the box to make it your default sgf editor!-TJ +

I use CGoban2 with Webstart on Windows XP. When I start the program, it asks me to associate the .sgf type with CGoban2. However, if I say "No", it will ask me everytime I start again. As I use another program for SGF editing, how to tell CGoban2 to NOT associate and NOT ask everytime it starts? The extra window you need to click away is somewhat annoying.


This is a copy of the living page "KGS CGoban2 File Association" at Sensei's Library.
(OC) 2009 the Authors, published under the OpenContent License V1.0.
[Welcome to Sensei's Library!]
StartingPoints
ReferenceSection
About