cgoban as standard sgf-viewer

Comments, questions, rants, etc, that are specifically about KGS go here.
Post Reply
User avatar
SoDesuNe
Gosei
Posts: 1810
Joined: Wed Apr 21, 2010 1:57 am
Rank: KGS 1-dan
GD Posts: 0
Has thanked: 490 times
Been thanked: 365 times

cgoban as standard sgf-viewer

Post by SoDesuNe »

Is it possible for cgoban 3 to open a sgf-file by double-clicking on it?

It somehow won't work for me. Java says something like the application couldn't start, "parsing" error in line 0 - it's in german originally, that's just my translation ^^ (Original: Anwendung kann nicht gestartet werden. Details -> Fehler: Startdatei konnte nicht geparst werden. Fehler in Zeile 0.)
I've set my cgoban shortcut as the standard application to open sgf-files.

Did I make a mistake and can I fix it? It's troublesome to always open up cgoban first and then click on edit sgf-file.

I'm thankful for any tips =)
lobotommy
Lives in gote
Posts: 408
Joined: Thu Jul 29, 2010 2:01 am
Rank: EGF 3kyu
GD Posts: 0
Universal go server handle: tommyray (1d/2d)
Location: Poland, Gliwice
Has thanked: 127 times
Been thanked: 94 times

Re: cgoban as standard sgf-viewer

Post by lobotommy »

Try to remove all Java from your system. Then reinstall it - maybe it will work. No guarantee.
Tsumego/Tesuji apps for iPad, iPhone & Android devices:http://www.lifein19x19.com/forum/viewto ... =18&t=7511
xed_over
Oza
Posts: 2264
Joined: Mon Apr 19, 2010 11:51 am
Has thanked: 1179 times
Been thanked: 553 times

Re: cgoban as standard sgf-viewer

Post by xed_over »

yes, its possible, but you have to write a wrapper script to do it. (I have it on my mac)

there are some old threads on here (or maybe GoDiscussions, I forget), that talk about how to do it for various OS. I'll search for them later when I have the time.
User avatar
Bonobo
Oza
Posts: 2223
Joined: Fri Dec 23, 2011 6:39 pm
Rank: OGS 9k
GD Posts: 0
OGS: trohde
Universal go server handle: trohde
Location: Germany
Has thanked: 8262 times
Been thanked: 924 times
Contact:

Re: cgoban as standard sgf-viewer

Post by Bonobo »

“The only difference between me and a madman is that I’m not mad.” — Salvador Dali ★ Play a slooooow correspondence game with me on OGS? :)
User avatar
SoDesuNe
Gosei
Posts: 1810
Joined: Wed Apr 21, 2010 1:57 am
Rank: KGS 1-dan
GD Posts: 0
Has thanked: 490 times
Been thanked: 365 times

Re: cgoban as standard sgf-viewer

Post by SoDesuNe »

Thank you!

But I guess this does not work for Win7? ^^ (For starters, I don't seem to have an "Automator" application)

I have the feeling, there should be something similiar possible using a batch-file but I sadly don't know how to code that :o
User avatar
SoDesuNe
Gosei
Posts: 1810
Joined: Wed Apr 21, 2010 1:57 am
Rank: KGS 1-dan
GD Posts: 0
Has thanked: 490 times
Been thanked: 365 times

Re: cgoban as standard sgf-viewer

Post by SoDesuNe »

Ha ha ha, thanks internet, that wasn't too hard, really ^^

Create a bat-file (to do so, create a new text-file and then save as "all files" and with ".bat"). Copy and paste this line in it:

Code: Select all

start %userprofile%\Desktop\Spiele\Go\CGoban3.lnk -nosplash -open %1


Obviously the path has to lead to your CGoban Shortcut. Save it.

Now right click on a sgf-file and choose the just created bat-file as the standard application. Enjoy : )

It's not a clean solution, though. If you double-click on the bat-file to open KGS you will get an error-message everytime since this code requieres to open something additional (%1 is a placeholder). But since I just wanted to double-click on a sgf-file to open cgoban, this works for me perfectly. You can still open KGS via the jnlp-file or your shortcut.
Post Reply