diff --git a/hplip.spec b/hplip.spec index 2edee6b..748707a 100644 --- a/hplip.spec +++ b/hplip.spec @@ -86,14 +86,14 @@ rm -f %{buildroot}%{_bindir}/foomatic-rip \ %{buildroot}%{_datadir}/cups/model/foomatic-ppds \ %{buildroot}%{_datadir}/applications/hplip.desktop -# Don't install desktop file (bug #170762). -#mkdir -p %{buildroot}%{_datadir}/applications -#desktop-file-install --vendor HP \ -# --dir %{buildroot}%{_datadir}/applications \ -# --add-category X-Red-Hat-Extra \ -# --add-category Utility \ -# --add-category Application \ -# %{buildroot}%{_datadir}/hplip/data/hplip.desktop +mkdir -p %{buildroot}%{_datadir}/applications +echo 'Hidden=true' >> %{buildroot}%{_datadir}/hplip/data/hplip.desktop +desktop-file-install --vendor HP \ + --dir %{buildroot}%{_datadir}/applications \ + --add-category X-Red-Hat-Extra \ + --add-category Utility \ + --add-category Application \ + %{buildroot}%{_datadir}/hplip/data/hplip.desktop %clean rm -rf %{buildroot} @@ -109,7 +109,7 @@ rm -rf %{buildroot} %{_libdir}/cups/backend/hp %{_datadir}/hplip %{_libdir}/python*/site-packages/* -#%{_datadir}/applications/*.desktop +%{_datadir}/applications/*.desktop %files -n hpijs %defattr(-,root,root) @@ -142,6 +142,9 @@ if ! grep ^hpaio /etc/sane.d/dll.conf >/dev/null 2>/dev/null ; then \ fi %changelog +* Fri Oct 14 2005 Tim Waugh +- Install the desktop file with Hidden=True (bug #170762). + * Fri Oct 14 2005 Tim Waugh 0.9.6-3 - Don't install desktop file (bug #170762). - Quieten the hpssd daemon at startup (bug #170762).