<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>145060</bug_id>
          
          <creation_ts>2006-08-25 03:30 0000</creation_ts>
          <short_desc>games-board/cgoban2 command parameters not escaped</short_desc>
          <delta_ts>2006-08-28 22:12:19 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Games</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>gbin-gentoo@gootz.net</reporter>
          <assigned_to>games@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>gbin-gentoo@gootz.net</who>
            <bug_when>2006-08-25 03:30:23 0000</bug_when>
            <thetext>If you try to associate your sgf files with for example :
/usr/games/bin/cgoban2 %f
or /usr/games/bin/cgoban2 &apos;%f&apos; or /usr/games/bin/cgoban2 &quot;%f&quot; or /usr/games/bin/cgoban2 -edit %f etc ... it won&apos;t work with files paths with spaces like : 
/var/gbin/go/Games base/Go Game World - pro commented/ggw-1234.sgf

Perharps a default association for KDE would be nice to setup with text/sgf (should be exactly the same thing as qgo)

---

I made this workaround but it is not elegant.

#!/bin/sh
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-board/cgoban2/files/cgoban2,v 1.3 2004/07/14 22:14:02 agriffis Exp $

if [ -n &apos;$*&apos; ]; then
        which java &gt; /dev/null 2&gt;&amp;1 &amp;&amp; \
                java -jar /usr/share/games/cgoban2/cgoban.jar &quot;$*&quot; &amp;&amp; \
                exit 0
fi
        which java &gt; /dev/null 2&gt;&amp;1 &amp;&amp; \
                java -jar /usr/share/games/cgoban2/cgoban.jar &amp;&amp; \
                exit 0

echo &quot;No \&quot;java\&quot; binary found in your PATH.&quot;
echo &quot;You should run \&quot;java-config\&quot; to choose your default VM.&quot;
exit 1</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>mr_bones_@gentoo.org</who>
            <bug_when>2006-08-28 22:12:19 0000</bug_when>
            <thetext>resync/remerge and try it again.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>