<?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>173795</bug_id>
          
          <creation_ts>2007-04-08 20:04 0000</creation_ts>
          <short_desc>xfce-base/thunar-0.8.0-r2: Command chosen in UCA browse isn&apos;t quoted</short_desc>
          <delta_ts>2007-05-02 12:34:28 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>Applications</component>
          <version>2006.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          <bug_file_loc>http://bugzilla.xfce.org/show_bug.cgi?id=3105</bug_file_loc>
          
          
          <priority>P2</priority>
          <bug_severity>trivial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>askwar@digitalprojects.com</reporter>
          <assigned_to>xfce@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>askwar@digitalprojects.com</who>
            <bug_when>2007-04-08 20:04:56 0000</bug_when>
            <thetext>In Thunar, a user can select a so-called &quot;UCA&quot; (User Configurable Action). In doing so, he can BROWSE to select a command which is to be run. If the path to command (including the actual filename) contains spaces, the command is to be put in quotes. If it&apos;s not, when the UCA is selected, nothing will happen, as the programm cannot be found.

Attached patch fixes this issue. When a user selects (after browsing) a filename which contains spaces, the quotes (&quot;) are put before and after the filename.

There&apos;s also a bug at upstream reg. this - http://bugzilla.xfce.org/show_bug.cgi?id=3105</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>askwar@digitalprojects.com</who>
            <bug_when>2007-04-08 20:06:12 0000</bug_when>
            <thetext>Created an attachment (id=115747)
Patch against thunar-uca-editor.c, adding quotes

The attached patch makes it so, that the filename has quotes (&quot;) before and
after it, if quotes are required. Right now, it only checks for the occurance
of space.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>askwar@digitalprojects.com</who>
            <bug_when>2007-04-08 20:07:04 0000</bug_when>
            <thetext>Forgot to mention the purpose of this bug - I&apos;d like to suggest to add this patch to a (possible) r3, as it makes Thunar easier and better to use.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ssuominen@gentoo.org</who>
            <bug_when>2007-04-13 12:18:41 0000</bug_when>
            <thetext>Alexander, We&apos;ll wait until upstream responses in http://bugzilla.xfce.org/show_bug.cgi?id=3105 before doing this change.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ssuominen@gentoo.org</who>
            <bug_when>2007-04-23 12:18:18 0000</bug_when>
            <thetext>Upstream is here saying &apos;This bug should be marked INVALID&apos;. http://bugzilla.xfce.org/show_bug.cgi?id=3105#c7

If they change their mind, let us know.. ty.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ssuominen@gentoo.org</who>
            <bug_when>2007-04-25 12:08:02 0000</bug_when>
            <thetext>http://bugzilla.xfce.org/show_bug.cgi?id=3105#c11 , status has changed to upstream patch in form of unapplied patch attached to upstream bug. waiting for resolution.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ssuominen@gentoo.org</who>
            <bug_when>2007-05-02 12:34:28 0000</bug_when>
            <thetext>(In reply to comment #2)
&gt; Forgot to mention the purpose of this bug - I&apos;d like to suggest to add this
&gt; patch to a (possible) r3, as it makes Thunar easier and better to use.
&gt; 

I applied Nick Schermer&apos;s patch from upstream bug in -r3. Thanks for your work and reporting.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>115747</attachid>
            <date>2007-04-08 20:06 0000</date>
            <desc>Patch against thunar-uca-editor.c, adding quotes</desc>
            <filename>thunar-uca-editor_add-quotes.patch</filename>
            <type>text/plain</type>
            <data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Cisg
ICAgICBpZiAoc3Ryc3RyIChmaWxlbmFtZSwgIiAiKSA9PSBOVUxMKQorICAgICAgICAvKiBObyBz
cGFjZXMgaW4gZmlsZW5hbWUsIGl0J3Mgc2FmZSB0byB1c2UgdGhlIGZpbGVuYW1lIGFzIGl0IGlz
ICovCisgICAgICAgIHNhZmVfZmlsZW5hbWUgPSBnX3N0cmR1cChmaWxlbmFtZSk7CisgICAgICBl
bHNlCisgICAgICAgIC8qIGZpbGVuYW1lIGNvbnRhaW5zIHNwYWNlcywgYWRkIHF1b3RlcyAqLwor
ICAgICAgICBzYWZlX2ZpbGVuYW1lID0gZ19zdHJkdXBfcHJpbnRmICgiXCIlc1wiIiwgZmlsZW5h
bWUpOworICAgICAgCisgICAgICBzID0gZ19zdHJjb25jYXQgKHNhZmVfZmlsZW5hbWUsICIgJWYi
LCBOVUxMKTsKICAgICAgIGd0a19lbnRyeV9zZXRfdGV4dCAoR1RLX0VOVFJZICh1Y2FfZWRpdG9y
LT5jb21tYW5kX2VudHJ5KSwgcyk7CiAgICAgICBnX2ZyZWUgKGZpbGVuYW1lKTsKKyAgICAgIGdf
ZnJlZSAoc2FmZV9maWxlbmFtZSk7CiAgICAgICBnX2ZyZWUgKHMpOwogICAgIH0KIAo=
</data>        

          </attachment>
    </bug>

</bugzilla>