<?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>199730</bug_id>
          
          <creation_ts>2007-11-20 06:45 0000</creation_ts>
          <short_desc>app-office/gnucash-2.2.1-r1 does not install icon</short_desc>
          <delta_ts>2007-12-18 14:34:05 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>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>trivial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>tetromino@gmail.com</reporter>
          <assigned_to>tove@gentoo.org</assigned_to>
          <cc>jsled-gentoo@asynchronous.org</cc>

      

      
          <long_desc isprivate="0">
            <who>tetromino@gmail.com</who>
            <bug_when>2007-11-20 06:45:39 0000</bug_when>
            <thetext>gnucash-2.2.1 (unlike 2.0.x series) does not install a png or svg icon for its desktop menu entry; gnucash.desktop says Icon=gnucash-icon, but there is no gnucash-icon.png installed. Instead, gnucash ebuild sticks gnucash-icon.ico in /usr/share/pixmaps, but that doesn&apos;t help since .ico files cannot be read by current Gnome application menu.

Solution is to add

src_install() {
    gnome2_src_install
    newicon &quot;src/pixmaps/gnucash-icon-48x48.png&quot; &quot;gnucash-icon.png&quot;
}

to the ebuild.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jsled-gentoo@asynchronous.org</who>
            <bug_when>2007-11-20 16:55:33 0000</bug_when>
            <thetext>It&apos;d be nicer to use the svg version, if possible.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tove@gentoo.org</who>
            <bug_when>2007-11-20 17:57:19 0000</bug_when>
            <thetext>Please help me:

1) Josh, this seems to be an upstream problem. You deliver a .desktop file with an Icon that doesn&apos;t match. Can you fix it?

2) The svg version is this one -&gt; http://svn.gnucash.org/trac/browser/gnucash/trunk/art/tango/scalable/gnucash.svg
It&apos;s not in the tarball but we can fetch it (and mirror it).
Does the svg version work in every desktop environment? As i can only find 2 other .svg files in my /usr/share/pixmaps.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tetromino@gmail.com</who>
            <bug_when>2007-11-20 22:22:55 0000</bug_when>
            <thetext>Created an attachment (id=136553)
gnucash-2.2.1-icons.patch&quot;

After looking at this a bit more, this is basically a bug in the gnucash build system. The gnucash program uses gnucash-icon-*x*.png files (which it installs in /usr/share/gnucash/pixmaps). Mistakenly, it then additionally installs them into /usr/share/pixmaps, thinking that the menu system will pick them up to display the desktop icon. However, the menu system expects a file called &quot;gnucash-icon.png&quot;. To use multiple sizes, &quot;gnucash-icon.png&quot; has to be present in multiple directories under /usr/share/icons.

So the correct solution is to change the makefile to copy the differently-sized icons under the right name to the right subdirectories of /usr/share/icons. Patch attached.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tetromino@gmail.com</who>
            <bug_when>2007-11-20 22:30:13 0000</bug_when>
            <thetext>So with the above patch, you should not install anything into /usr/share/pixmaps any more (so you ignore my first comment about src_install). And if you do want to install the svg version, it should go into /usr/share/icons/hicolor/scalable/apps/gnucash-icon.svg, and then the the svg-compatible menu systems will pick it up.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jsled-gentoo@asynchronous.org</who>
            <bug_when>2007-12-16 17:38:37 0000</bug_when>
            <thetext>Upstream: http://bugzilla.gnome.org/show_bug.cgi?id=503889
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>tove@gentoo.org</who>
            <bug_when>2007-12-18 12:28:18 0000</bug_when>
            <thetext>gnucash-2.2.2 is in the tree with the icons patch. I have also added the svg icon.

Thanks to
Alex, for reporting and patching, and 
Josh, for filing the upstream bugreport.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jsled-gentoo@asynchronous.org</who>
            <bug_when>2007-12-18 14:34:05 0000</bug_when>
            <thetext>(In reply to comment #6)
&gt; gnucash-2.2.2 is in the tree with the icons patch. I have also added the svg
&gt; icon.

Oh, wow.  I&apos;d worked up an upstream commit for the icon issue over the weekend,  but wasn&apos;t quite able to get it into 2.2.2 (needs to be tested against Windows for upstream submission).  I was going to hand it to you here, but you beat me to the punch! :)  Nice job, and thanks for the bump.

</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>136553</attachid>
            <date>2007-11-20 22:22 0000</date>
            <desc>gnucash-2.2.1-icons.patch&quot;</desc>
            <filename>gnucash-2.2.1-icons.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">ZGlmZiAtcnUgZ251Y2FzaC0yLjIuMS5vcmlnL3NyYy9waXhtYXBzL01ha2VmaWxlLmFtIGdudWNh
c2gtMi4yLjEvc3JjL3BpeG1hcHMvTWFrZWZpbGUuYW0KLS0tIGdudWNhc2gtMi4yLjEub3JpZy9z
cmMvcGl4bWFwcy9NYWtlZmlsZS5hbQkyMDA3LTA4LTE5IDA5OjQ1OjI3LjAwMDAwMDAwMCAtMDQw
MAorKysgZ251Y2FzaC0yLjIuMS9zcmMvcGl4bWFwcy9NYWtlZmlsZS5hbQkyMDA3LTExLTIwIDE2
OjU5OjA3LjAxOTI3ODgzOCAtMDUwMApAQCAtMzYsMTAgKzM2LDI3IEBACiAgIHN0b2NrX3NwbGl0
X3RpdGxlLnBuZyBcCiAgIHN0b2NrX3NwbGl0X3dhdGVybWFyay5wbmcKIAotZ25jaWNvbmRpciA9
ICR7ZGF0YWRpcn0vcGl4bWFwcwotZ25jaWNvbl9EQVRBID0gZ251Y2FzaC1pY29uLTE2eDE2LnBu
ZyBcCi0gIGdudWNhc2gtaWNvbi0zMngzM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