aboutsummaryrefslogtreecommitdiffstats
path: root/userdrake.spec
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2006-09-15 22:47:56 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2006-09-15 22:47:56 +0000
commit32b6900926a4226e3cdf2b443c237238dc57b432 (patch)
tree7192c0563257d891697480b810acffd72dd770a8 /userdrake.spec
parentad86407e9b16a72a774538191aee774278f7d427 (diff)
downloaduserdrake-32b6900926a4226e3cdf2b443c237238dc57b432.tar
userdrake-32b6900926a4226e3cdf2b443c237238dc57b432.tar.gz
userdrake-32b6900926a4226e3cdf2b443c237238dc57b432.tar.bz2
userdrake-32b6900926a4226e3cdf2b443c237238dc57b432.tar.xz
userdrake-32b6900926a4226e3cdf2b443c237238dc57b432.zip
XDG menu
Diffstat (limited to 'userdrake.spec')
-rw-r--r--userdrake.spec15
1 files changed, 14 insertions, 1 deletions
diff --git a/userdrake.spec b/userdrake.spec
index 8244d6d..a616c5a 100644
--- a/userdrake.spec
+++ b/userdrake.spec
@@ -49,7 +49,19 @@ icon="userdrake.png" \
section="Configuration/Other" \
title="User Administration" \
longtitle="Add or remove users and groups" \
-command="/usr/sbin/userdrake"
+command="/usr/sbin/userdrake" xdg="true"
+EOF
+
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
+cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-mdvonline.desktop <<EOF
+[Desktop Entry]
+Name=User Administration
+Comment=Add or remove users and groups
+Exec=/usr/sbin/userdrake
+Icon=userdrake
+Type=Application
+StartupNotify=true
+Categories=X-MandrivaLinux-System-Archiving-Other;Settings;
EOF
%post
@@ -69,6 +81,7 @@ rm -rf %{buildroot}
%{_prefix}/sbin/*
%{_datadir}/userdrake
%{_mandir}/man3/USER*
+%{_datadir}/applications/mandriva-*.desktop
%{_menudir}/%{name}
%{perl_vendorarch}/USER.pm
%{perl_vendorarch}/auto/USER