<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">I was looking at this further, and
      found out that /usr/share/applications/defaults.list was
      officially deprecated in 4/14.  See, for instance, <a
href="https://mail.gnome.org/archives/distributor-list/2015-January/msg00000.html">https://mail.gnome.org/archives/distributor-list/2015-January/msg00000.html</a>
      and also the current spec at <a
href="http://standards.freedesktop.org/mime-apps-spec/mime-apps-spec-latest.html">http://standards.freedesktop.org/mime-apps-spec/mime-apps-spec-latest.html</a>
      which instead specifies the use of a mimeapps.list at one location
      or another.<br>
      <br>
      Lubuntu 14.04 seems to implement some sort of mixture of the
      deprecated and current spec.  I have not been able to pin it down
      with precision.<br>
      <br>
      The LibreOffice installation wrote a full complement of mime type
      associations to /usr/share/applications/defaults.list.  But
      PCmanFM does not look at that -- it opens an ODT file with
      AbiWord.  I have yet to figure out what it looks at by default. 
      Anyone know?<br>
      <br>
      If I R-click on a file: Open With and check the box to make the
      current app the default for opening the file, then PCmanFM writes
      to ~/.local/share/applications/mimeapps.list with the minimal
      entries required to set the desired mime type association.  And
      then for the current user, ODT files open with LibreOffice.<br>
      <br>
      Oddly enough, though PCmanFM writes to a mimeapps.list (named per
      the new spec), ~/.local/share/applications is not one of the
      lookup locations in the new spec.<br>
      <br>
      I copied ~/.local/share/applications/mimeapps.list to
      /etc/xdg/lubuntu/, which is a lookup location in the new spec. 
      Then I created a new user and found that my global mimeapps.list
      was ineffective.<br>
      <br>
      On 1/15/2015 2:39 PM, Israel wrote:<br>
    </div>
    <blockquote cite="mid:54B81763.80401@gmail.com" type="cite">
      <meta content="text/html; charset=windows-1252"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix">You could of course use:<br>
        <br>
        /usr/share/applications/defaults.list<br>
        This hold a bunch of the values you'd normally set using
        xdg-mime<br>
        It usually contains stuff like:<br>
        <pre>application/rtf=libreoffice-writer.desktop</pre>
        <pre>application/tab-separated-values=libreoffice-calc.desktop</pre>
        <pre>application/vnd.lotus-1-2-3=libreoffice-calc.desktop</pre>
        <pre>application/vnd.ms-excel=libreoffice-calc.desktop</pre>
        <pre>application/vnd.ms-word=libreoffice-writer.desktop</pre>
        <br>
        Which you can change to whatever you like.<br>
        This should effect using things like:<br>
        <tt>xdg-open </tt><tt>mydoc.rtf</tt><br>
        from the terminal, and probably from any application that looks
        at xdg mime types.<br>
        The first line in my above excerpt defines that
        libreoffice-writer.desktop will handle this.<br>
        <br>
        <br>
        <br>
        On 01/15/2015 10:38 AM, John Hupp wrote:<br>
      </div>
      <blockquote cite="mid:54B7ECF3.5080807@prpcompany.com" type="cite">
        <meta content="text/html; charset=windows-1252"
          http-equiv="Content-Type">
        <div class="moz-cite-prefix">OK, a happy discovery.  LxSession
          Default Apps does not do the same thing as R-Click: Open With:
          <app> + checking "Always use ..."<br>
          <br>
          If I do the latter with an .odt file, then LxSession Default
          Apps still has Documents: AbiWord, but odt docs open with
          LibreOffice.  And abw docs open with AbiWord.<br>
          <br>
          I see now also that the properties of an odt file show File
          Type: OpenDocument Text.  The format has its own mime type
          which can be used (but is not used by default) as the basis
          for the kind of granular control I wanted.<br>
          <br>
          So lxsession-default-apps and pcmanfm are apparently doing
          something different in the back end with mime types.  I read
          somewhere that there are perhaps 4 different mime type
          configuration files which are respected in some hierarchy.<br>
          <br>
          On 1/15/2015 10:17 AM, Andre Rodovalho wrote:<br>
        </div>
        <blockquote
cite="mid:CABLbVHN2u_xedb5NVuWQ4yKyRoKTCuvVQRrXhT3rMYUA=OG=gQ@mail.gmail.com"
          type="cite">
          <div dir="ltr">You can set this at<b> lxsession-default-apps</b>
            <div><b>Menu > Preferences > LxSession Default Apps<br>
              </b><br>
              OR
              <div><br>
              </div>
              <div><b>Right click</b> on the file you want to set. Let
                say, a Document.odt. On the menu, choose <b>Properties</b>.
                At the Properties windows, select the software you want
                to open as default on the "<b>Open With</b>" combobox
                (drop down menu)... Then hit <b>OK</b>.<br>
                <br>
                Double click the file to see if works...</div>
            </div>
          </div>
          <div class="gmail_extra"><br clear="all">
            <div>
              <div class="gmail_signature">
                <div dir="ltr">
                  <div>
                    <div dir="ltr">
                      <div>
                        <div dir="ltr">
                          <div>
                            <div dir="ltr">
                              <div>
                                <div dir="ltr">
                                  <div>
                                    <div dir="ltr">
                                      <div>
                                        <div dir="ltr"><br>
                                        </div>
                                      </div>
                                    </div>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <br>
            <div class="gmail_quote">2015-01-14 17:57 GMT-02:00 John
              Hupp <span dir="ltr"><<a moz-do-not-send="true"
                  href="mailto:lubuntu@prpcompany.com" target="_blank">lubuntu@prpcompany.com</a>></span>:<br>
              <blockquote class="gmail_quote" style="margin:0 0 0
                .8ex;border-left:1px #ccc solid;padding-left:1ex">I
                don't understand mime types very well, but it seems like
                the net effect as implemented is that they don't result
                in very granular control.<br>
                <br>
                To be specific, I find that if I use LibreOffice Writer
                to create an .odt file, a double-click on the file in
                pcmanfm results in AbiWord opening the file.<br>
                <br>
                I would like LibreOffice to open odt files, AbiWord to
                open abw files, and leafpad to open plain text files. 
                But lxsession-default-apps merely sets a "Document"
                launcher.<br>
                <br>
                Can set up finer control to open some files according to
                their extension?<span class="HOEnZb"><font
                    color="#888888"><br>
                    <br>
                    -- <br>
                    Lubuntu-users mailing list<br>
                    <a moz-do-not-send="true"
                      href="mailto:Lubuntu-users@lists.ubuntu.com"
                      target="_blank">Lubuntu-users@lists.ubuntu.com</a><br>
                    Modify settings or unsubscribe at: <a
                      moz-do-not-send="true"
                      href="https://lists.ubuntu.com/mailman/listinfo/lubuntu-users"
                      target="_blank">https://lists.ubuntu.com/mailman/listinfo/lubuntu-users</a><br>
                  </font></span></blockquote>
            </div>
            <br>
          </div>
          <br>
          <fieldset class="mimeAttachmentHeader"></fieldset>
          <br>
        </blockquote>
        <br>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
      </blockquote>
      <br>
      <br>
      <pre class="moz-signature" cols="72">-- 
Regards</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <br>
  </body>
</html>