Skip to content

Commit 49b2e88

Browse files
authored
Clarify not using binary calling desktop file macros (#335)
* Clarify not using binary calling desktop file macros Signed-off-by: Owen-sz <owen@fyralabs.com> * change wording, move __update_desktop_database to unsed section * fix build? --------- Signed-off-by: Owen-sz <owen@fyralabs.com>
1 parent b4f8010 commit 49b2e88

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

content/docs/terra/srpm.mdx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,15 +186,15 @@ These are macros used for working with [.desktop files](https://specifications.f
186186

187187
### %__desktop_file_edit
188188
Expands to: `/usr/bin/desktop-file-edit{:rpmspec}`
189+
Note that this should be used only when [%desktop_file_edit](#desktop_file_edit) can not be used, and that the flags listed for `%desktop_file_edit` will not work.
189190

190191
### %__desktop_file_install
191192
Expands to: `/usr/bin/desktop-file-install{:rpmspec}`
193+
Note that this should be used only when [%desktop_file_install](#desktop_file_install) can not be used, and that the flags listed for `%desktop_file_install` will not work.
192194

193195
### %__desktop_file_validate
194196
Expands to: `/usr/bin/desktop-file-validate{:rpmspec}`
195-
196-
### %__update_desktop_database
197-
Expands to: `/usr/bin/update-desktop-database{:rpmspec}`
197+
Note that this should be used only when [%desktop_file_validate](#desktop_file_validate) can not be used, and that the flags listed for `%desktop_file_validate` will not work.
198198

199199
### %desktop_file_edit
200200
SHOULD be used if you for any reason need to edit a .desktop file a build has already installed.
@@ -1340,6 +1340,10 @@ Anda directory for scripts such as `find-develinfo.sh` used by `%__anda_develfil
13401340
Expands to: `%_anda_srpm_macros_dir/find-staticinfo.sh %buildroot > anda-staticfiles.list{:rpmspec}`
13411341
Creates anda-staticfiles.list file in `%{buildroot}{:rpmspec}` to be used by [`%pkg_static_files`](#pkg_static_files).
13421342

1343+
### %__update_desktop_database
1344+
Expands to: `/usr/bin/update-desktop-database{:rpmspec}`
1345+
This is not used as there is no reason not to use `%update_desktop_database`.
1346+
13431347
### %desktop_file_args
13441348
This macro is created when using the `-F` option in `%electron_install`. It's used to pass the appropriate Exec arguments to `desktop-file-install` and has no other use.
13451349

0 commit comments

Comments
 (0)