contractor icon indicating copy to clipboard operation
contractor copied to clipboard

Support TryExec key like in .desktop files

Open elementaryBot opened this issue 8 years ago • 4 comments

Contractor should support a TryExec key like in .desktop files, see http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s05.html

This is an extension of bug 912413 required for properly handling contracts that use an wrapper over the actual provider - which will happen very often, as far as I can tell.

Launchpad Details: #LP1171835 Sergey "Shnatsel" Davidoff - 2013-04-23 12:10:34 +0000

elementaryBot avatar Apr 11 '17 04:04 elementaryBot

This is good and easy to implement but at the same time it encourages bad/lazy system integration. Package dependencies should do it. A "wont fix" IMHO.

Launchpad Details: #LPC Victor Martinez - 2013-05-01 21:42:30 +0000

elementaryBot avatar Apr 11 '17 04:04 elementaryBot

I'd like to be proven wrong though :)

Launchpad Details: #LPC Victor Martinez - 2013-05-01 21:43:59 +0000

elementaryBot avatar Apr 11 '17 04:04 elementaryBot

Example: Inkscape. It requires a wrapper script for contracts to function properly, but the presence of the script does not guarantee the presence of Inkscape. In theory it should, BUT unfortunately there's no way we can make installing Inkscape also install the package with contracts. So until we upstream the contracts we have 3 options:

  1. Let the user discover the existence of a separate contracts package and install it manually (not realistic)
  2. Patch Inkscape package to either include the contracts or recommend the contracts package (cumbersome)
  3. Check presence of actual Inkscape binary from TryExec=

Launchpad Details: #LPC Sergey "Shnatsel" Davidoff - 2013-05-02 00:33:08 +0000

elementaryBot avatar Apr 11 '17 04:04 elementaryBot

I added initial support for TryExec to fix another bug by the way.

Launchpad Details: #LPC Victor Martinez - 2013-05-03 20:21:27 +0000

elementaryBot avatar Apr 11 '17 04:04 elementaryBot