summaryrefslogtreecommitdiffstats
path: root/redhat/applications/knmap/knmap.spec
diff options
context:
space:
mode:
Diffstat (limited to 'redhat/applications/knmap/knmap.spec')
-rw-r--r--redhat/applications/knmap/knmap.spec8
1 files changed, 5 insertions, 3 deletions
diff --git a/redhat/applications/knmap/knmap.spec b/redhat/applications/knmap/knmap.spec
index 30274d2bc..81528820d 100644
--- a/redhat/applications/knmap/knmap.spec
+++ b/redhat/applications/knmap/knmap.spec
@@ -159,9 +159,11 @@ fi
%find_lang %{tde_pkg}
# Move desktop icon to XDG directory
-%__mkdir_p %{buildroot}%{tde_tdeappdir}
-%__mv "%{buildroot}%{tde_datadir}/applnk/"*"/%{tde_pkg}.desktop" "%{buildroot}%{tde_tdeappdir}/%{tde_pkg}.desktop"
-%__rm -r "%{buildroot}%{tde_datadir}/applnk"
+if [ -d "%{buildroot}%{tde_datadir}/applnk" ]; then
+ %__mkdir_p %{buildroot}%{tde_tdeappdir}
+ %__mv "%{buildroot}%{tde_datadir}/applnk/"*"/%{tde_pkg}.desktop" "%{buildroot}%{tde_tdeappdir}/%{tde_pkg}.desktop"
+ %__rm -r "%{buildroot}%{tde_datadir}/applnk"
+fi
# Updates applications categories for openSUSE
%if 0%{?suse_version}