From 30bddace752923018170b04fcf4848aa80f6163f Mon Sep 17 00:00:00 2001 From: Zdenek Dohnal Date: Mon, 15 Apr 2019 12:20:53 +0200 Subject: [PATCH] fix several desktop issues reported in bodhi --- hplip.spec | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/hplip.spec b/hplip.spec index a7b70c5..f546060 100644 --- a/hplip.spec +++ b/hplip.spec @@ -7,7 +7,7 @@ Summary: HP Linux Imaging and Printing Project Name: hplip Version: 3.18.12 -Release: 9%{?dist} +Release: 10%{?dist} License: GPLv2+ and MIT and BSD and IJG and Public Domain and GPLv2+ with exceptions and ISC Url: https://developers.hp.com/hp-linux-imaging-and-printing @@ -460,15 +460,23 @@ sed -i -e '/^Categories=/d' hplip.desktop sed -i -e '/^Encoding=/d' hplip.desktop desktop-file-validate hplip.desktop -desktop-file-install --vendor HP \ +desktop-file-install \ --dir %{buildroot}/%{_datadir}/applications \ - --add-category System \ - --add-category Settings \ --add-category HardwareSettings \ hplip.desktop appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/*.appdata.xml +# install hp-uiscan desktop file +sed -i 's/Humanity\/devices\/48\/printer.svg/\/hicolor\/32x32\/apps\/hp_logo.png/' hp-uiscan.desktop + +desktop-file-validate hp-uiscan.desktop + +desktop-file-install \ + --dir %{buildroot}/%{_datadir}/applications \ + --add-category Application \ + hp-uiscan.desktop + # Regenerate hpcups PPDs on upgrade if necessary (bug #579355). install -p -m755 %{SOURCE1} %{buildroot}%{_bindir}/hpcups-update-ppds @@ -649,6 +657,9 @@ rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/hplip-systray.desktop %config(noreplace) %{_sysconfdir}/sane.d/dll.d/hpaio %changelog +* Mon Apr 15 2019 Zdenek Dohnal - 3.18.12-10 +- fix several desktop issues reported in bodhi + * Thu Apr 04 2019 Zdenek Dohnal - 3.18.12-9 - 1695716 - hpcups crashes in Compressor destructor