diff --git a/alacarte.spec b/alacarte.spec index f7733be..70ffa76 100644 --- a/alacarte.spec +++ b/alacarte.spec @@ -40,9 +40,10 @@ make rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT -desktop-file-install --vendor='' --delete-original \ - --dir $RPM_BUILD_ROOT%{_datadir}/applications \ - --add-only-show-in GNOME \ +# desktop-file-install can't manipulate NotShowIn +sed -i -e 's/NotShowIn=KDE;/OnlyShowIn=GNOME;/' \ + $RPM_BUILD_ROOT%{_datadir}/applications/alacarte.desktop +desktop-file-validate \ $RPM_BUILD_ROOT%{_datadir}/applications/alacarte.desktop