File macros.desktop-file-utils of Package desktop-file-utils
xxxxxxxxxx
1
# RPM macros for packages installing desktop files
2
#
3
###
4
#
5
# When a package installs a desktop file, it should use both macros:
6
#
7
# - %desktop_database_post in %post
8
# - %desktop_database_postun in %postun
9
#
10
# Note that these macros can optionally take as argument the directory
11
# where the desktop file is installed. If no argument is passed, then
12
# %{_datadir}/applications will be used (which is where applications
13
# usually install their desktop file).
14
#
15
###
16
17
# On install, update the desktop database
18
%desktop_database_post() \
19
%nil
20
21
# On uninstall, update the desktop database. Note: we ignore upgrades (already
22
# handled in %post of the new package).
23
%desktop_database_postun() \
24
%nil
25