<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Script updated.</p>
    <p>Now the list of config files is pregenerated based on
      $CONFIG_HIERARCHY and $XDG_CURRENT_DESKTOP treated as lists.<br>
    </p>
    <br>
    <div class="moz-cite-prefix">2017-05-25 17:07, Vladimir Kudrya
      пишет:<br>
    </div>
    <blockquote
      cite="mid:0a7ab246-cab5-6d36-b584-45cfdfa11058@yandex.ru"
      type="cite">
      <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
      <p>From here:
        <a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://specifications.freedesktop.org/mime-apps-spec/latest/ar01s02.html">https://specifications.freedesktop.org/mime-apps-spec/latest/ar01s02.html</a></p>
      <p> </p>
      <blockquote type="cite">This is determined from taking the
        ascii-lowercase form of a component the environment variable
        $XDG_CURRENT_DESKTOP, which is a colon-separated list of names
        that the current desktop is known as.</blockquote>
      I'll make the changes accordingly.<br>
      <p><br>
      </p>
      <br>
      <div class="moz-cite-prefix">2017-05-25 17:02, Roman Chistokhodov
        пишет:<br>
      </div>
      <blockquote
cite="mid:CADy21kGT+=aD85nc=fS7d__agNcNCzh_xSaZ+es5Z+a0bS3_pQ@mail.gmail.com"
        type="cite">
        <div dir="ltr">
          <div>There's already lowercase version in XDG_MENU_PREFIX
            variable (it also usually includes trailing '-') which is
            part of menu spec. But I'm not sure if it's applicable here.<br>
          </div>
        </div>
        <div class="gmail_extra"><br>
          <div class="gmail_quote">On Thu, May 25, 2017 at 4:59 PM,
            Vladimir Kudrya <span dir="ltr"><<a
                moz-do-not-send="true"
                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">
              <div bgcolor="#FFFFFF" text="#000000">
                <p>Merged, thanks!</p>
                <p>$XDG_SESSION_DESKTOP... Not sure. Probably it's from
                  pam_systemd. <br>
                  It would be more reliable to take lowercase of
                  $XDG_CURRENT_DESKTOP then.<br>
                </p>
                <br>
                <div class="m_-3949264598335887016moz-cite-prefix">2017-05-25
                  16:53, Roman Chistokhodov пишет:<br>
                </div>
                <div>
                  <div class="h5">
                    <blockquote type="cite">
                      <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
                              moz-do-not-send="true"
                              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 moz-do-not-send="true"
                              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="m_-3949264598335887016HOEnZb">
                              <div class="m_-3949264598335887016h5"><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 moz-do-not-send="true"
                                    href="mailto:xdg@lists.freedesktop.org"
                                    target="_blank">xdg@lists.freedesktop.org</a><br>
                                  <a moz-do-not-send="true"
                                    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 moz-do-not-send="true"
                                  href="mailto:xdg@lists.freedesktop.org"
                                  target="_blank">xdg@lists.freedesktop.org</a><br>
                                <a moz-do-not-send="true"
                                  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>
                    </blockquote>
                    <br>
                  </div>
                </div>
              </div>
            </blockquote>
          </div>
          <br>
        </div>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
xdg mailing list
<a class="moz-txt-link-abbreviated" href="mailto:xdg@lists.freedesktop.org">xdg@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/xdg">https://lists.freedesktop.org/mailman/listinfo/xdg</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>