A spec to set default terminal applications?

Ian Huang imyxhuang at gmail.com
Wed Aug 29 21:41:02 UTC 2018

Huh, good find. I was about to type up an email about how the "Implements="
that was added after that proposal is kind of useless in our case; as it
"it is entirely up to the entity who defined a particular interface to
what it means to implement it." But then I realized that we can actually
use it
quite easily in addition to the proposed xdg-terminal-exec or
spec to avoid the need for duplicate desktop files for intent handlers.

It could work like this:
1. The X-ExecArg option (or X-ArgPrefix) in the proposed spec is moved from
   "data" directories with desktop files to part of the .list "config"
2. the concept of "data" directories (the ones full of .desktop files) can
   left out;
3. terminals and other applications that open intents are instructed to have
   certain values in the Implements key, for example "Implements=xdg-intent-
   terminal" or "Implements=xdg-intent-calculator";
4. when we scan through the .list config files, instead of running the
   app in the data directories, we check that the matching .desktop file in
   usual place (/usr/share/applications/ or ~/.local/share/applications or
   whatever) has the correct intent named in the Implements= key;
5. we just run that desktop file with the ArgPrefix specified in the .list.

It's only a little cleaner, though. Thoughts?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/xdg/attachments/20180829/c3c615ed/attachment.html>

More information about the xdg mailing list