reassign -1 mime-support 3.64 retitle -1 update-mime should convert a .desktop file's TryExec to a test= field for the mailcap entry
On Fri, Jul 03, 2020 at 04:29:24PM +1000, herb...@gondor.apana.org.au wrote: > The vim-tiny package depends on vim-common, which contains the > file /usr/share/applications/vim.desktop, that in turn causes > mailcap entries to be generated such as: > > text/x-csrc; vim %s; needsterminal This is being auto-generated by update-mime (from the mime-support package). > However, these entries are broken as vim-tiny does not provide > the vim binary. Either vim-tiny should provide /usr/bin/vim, > or these entries should be removed from vim-common. The desktop file is declaring this restriction with the TryExec=vim key. I'm going to reassign this to mime-support. It should convert the TryExec key into a test condition for the mailcap entry. The mime entries that the Vim packages are installing do have this check: $ grep vim debian/vim-common.mime text/plain; view %s; edit=vim %s; compose=vim %s; test=test -x /usr/bin/vim; needsterminal; priority=4 text/*; view %s; edit=vim %s; compose=vim %s; test=test -x /usr/bin/vim; needsterminal; priority=2 Cheers, -- James GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7 2D23 DFE6 91AE 331B A3DB