title: rpm installing an icon to the desktop
body: <p>In Fedora Gnome...</p>
  
  <p>Using a .desktop file in my rpm, I have successfully put my gui software into the gnome application menu.</p>
  
  <p>I am wondering if there is a way to also put the icon onto the gnome desktop when installing the rpm?</p>
  
  <p><strong>update:</strong></p>
  
  <p>Now I can get <code>rpmbuild</code> to successfully use rpmbuild with <code>xdg-desktop-icon</code> in <code>%install</code>... and in the process puts an icon on my desktop (<em>before even installing the rpm!</em>)  I am doing something wrong.  Any suggestions?</p>
  
  <p>Here is the relevant part of my spec file:</p>
  
  <pre><code>Source1: %{name}.desktop
  BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  BuildRequires:  gettext, python-devel, desktop-file-utils, xdg-utils
  
  ...
  
  %install
  rm -rf $RPM_BUILD_ROOT
  %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
  desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications %{SOURCE1}
  xdg-desktop-icon install --novendor %{SOURCE1}
  </code></pre>