<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>I believe my previous proposal still holds here.
<a class="moz-txt-link-freetext" href="https://github.com/Vladimir-csp/xdg-terminal-exec">https://github.com/Vladimir-csp/xdg-terminal-exec</a></p>
<div class="moz-cite-prefix">On 2020-07-20 14:00, <a class="moz-txt-link-abbreviated" href="mailto:smcv@collabora.com">smcv@collabora.com</a>
wrote:
</div>
<blockquote type="cite" cite="mid:20200720110047.GA7761@horizon">
<pre class="moz-quote-pre" wrap="">* Must be user-configurable (overriding desktop and distro defaults)</pre>
</blockquote>
Check.
<blockquote type="cite" cite="mid:20200720110047.GA7761@horizon">
<pre class="moz-quote-pre" wrap="">* Must produce a sensible result without user configuration (installing a
desktop Linux distribution should have a sensible default)</pre>
</blockquote>
If desktop's terminal provides .desktop file in xdg-terminals dir
under XDG_DATA hierarchy, it will be chosen
<blockquote type="cite" cite="mid:20200720110047.GA7761@horizon">
<pre class="moz-quote-pre" wrap="">* Default is desktop-dependent (if the user has not expressed a preference,
GNOME users expect to see gnome-terminal and KDE users expect konsole)
- In particular this means things like the Debian /etc/alternatives
mechanism are unsuitable</pre>
</blockquote>
Desktops can provide <code>/etc/xdg/$desktop-xdg-terminals.list</code>
<code></code>
<blockquote type="cite" cite="mid:20200720110047.GA7761@horizon">
<pre class="moz-quote-pre" wrap="">* Reading the configuration format should not require linking to specific
implementation libraries
- GLib isn't going to want to link to KDE libraries, Qt/KDE isn't going
to want to link to GNOME libraries, and neither is likely to want to
become dependent on some desktop-agnostic abstraction layer library
whose continued maintenance they cannot guarantee</pre>
</blockquote>
Plain .desktop entries and ini configs in XDG_CONFIG hierarchy.<br>
<blockquote type="cite" cite="mid:20200720110047.GA7761@horizon">
<pre class="moz-quote-pre" wrap="">
* Different terminals need different arguments to introduce the command
to execute
- xterm -e
- gnome-terminal -x (in old versions)
- gnome-terminal -- (in new versions)</pre>
</blockquote>
Covered.
<blockquote type="cite" cite="mid:20200720110047.GA7761@horizon">
<pre class="moz-quote-pre" wrap="">* Some terminal authors will be unwilling to introduce a D-Bus dependency
- In particular xterm is unlikely to do this</pre>
</blockquote>
Proposal's reference implementation is pure shell.
<blockquote type="cite" cite="mid:20200720110047.GA7761@horizon">
<pre class="moz-quote-pre" wrap="">Many of the requirements are the same as for MIME-type handling, so
many of them can be satisfied by an implementation that mimics MIME-type
handling.
</pre>
</blockquote>
Exactly.<br>
</body>
</html>