<div dir="ltr"><div>I found error in processing TryExec. Made pull request.</div><div><br></div>What the specification is XDG_SESSION_DESKTOP part of?</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 25, 2017 at 2:03 PM, Vladimir Kudrya <span dir="ltr"><<a href="mailto:vladimir-csp@yandex.ru" target="_blank">vladimir-csp@yandex.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm backing up my proposal with some code:<br>
<br>
<a href="https://github.com/Vladimir-csp/xdg-terminal-exec" rel="noreferrer" target="_blank">https://github.com/Vladimir-cs<wbr>p/xdg-terminal-exec</a><br>
<br>
Please test.<br>
<br>
<br>
2017-05-25 10:09, Vladimir Kudrya пишет:<div class="HOEnZb"><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
So now xdg-termial is a collection of workarouds to tie different DE's approaches together. Just like xdg-open.<br>
IMHO, there should be a movement towards proper standards.<br>
<br>
@Simon, with your remarks taken into accout, here is an update:<br>
Using desktop entries to define terminals gives advantages to downstream tools (selector GUIs, etc.) by providing proper descriptions, l10n.<br>
Places to look could be extended beyond /usr, into a proper ${XDG_DATA_[HOME|DIRS]} hierarchy, so it would look like this:<br>
<br>
Terminal descriptios:<br>
~/.local/share/xdg-terminals ($XDG_DATA_HOME)<br>
{/usr/local/share,/usr/share}/<wbr>xdg-terminals ($XDG_DATA_DIRS)<br>
<br>
Configs:<br>
~/.config/$desktop-xdg-termina<wbr>ls.list ($XDG_CONFIG_HOME)<br>
~/.config/xdg-terminals.list<br>
/etc/xdg/$desktop-xdg-terminal<wbr>s.list ($XDG_CONFIG_DIRS)<br>
/etc/xdg/xdg-terminals.list<br>
<br>
If this logic would be embeded into xdg-terminal, that would be a great start.<br>
<br>
2017-05-25 09:16, Simon Lees wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
We already have the xdg-terminal binary which launches the terminal<br>
based off the currently running desktop. I think a better approach would<br>
be to integrate with that existing infrastructure, it could be modified<br>
for example to check for the existence of a config file in 1 maybe<br>
several dirs (I guess a sysadmin may want to configure a default<br>
terminal for all his users).<br>
<br>
That config file would contain the path to the terminal followed by the<br>
exec command. This approach is less secure as someone could modify the<br>
config file without you realising (I guess this could happen anyway).<br>
<br>
I don't like the idea of describing exec arguments only somewhere in<br>
/usr, it would mean that if I was working on a machine that I didn't<br>
have root access to and I wanted to use some less popular or new<br>
terminal that hadn't been added to the list yet I wouldn't be able to. I<br>
also wouldn't be able to use a terminal that I had built from source in<br>
my home dir and added to my path.<br>
<br>
I also think in the days of the X11 / wayland transition prefixing the<br>
config files with xdg- rather then x- is a better approach, I may be on<br>
my own with that though.<br>
<br>
Cheers<br>
<br>
</blockquote>
<br>
______________________________<wbr>_________________<br>
xdg mailing list<br>
<a href="mailto:xdg@lists.freedesktop.org" target="_blank">xdg@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/xdg" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/xdg</a><br>
</blockquote>
<br>
______________________________<wbr>_________________<br>
xdg mailing list<br>
<a href="mailto:xdg@lists.freedesktop.org" target="_blank">xdg@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/xdg" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/xdg</a><br>
</div></div></blockquote></div><br></div>