mimeapps.list only takes a desktop file name, not a full path. Try text/plain=gedit.desktop;<div><br clear="all">J. Leclanche<br>
<br><br><div class="gmail_quote">On Sun, Sep 30, 2012 at 6:36 PM, Paul Menzel <span dir="ltr"><<a href="mailto:paulepanter@users.sourceforge.net" target="_blank">paulepanter@users.sourceforge.net</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear <a href="http://freedesktop.org" target="_blank">freedesktop.org</a> folks,<br>
<br>
<br>
using Debian Sid/unstable, trying to configure how to open files, I am<br>
having some problems.<br>
<br>
        $ xdg-mime --version<br>
        xdg-mime 1.1.0 rc1<br>
        $ xdg-mime query default text/plain<br>
        /usr/share/applications/gedit.desktop<br>
        $ echo text > test.txt<br>
        $ xdg-mime query filetype test.txt<br>
        text/plain<br>
        $ grep 'text/plain' ~/.local/share/applications/mimeapps.list<br>
        text/plain=/usr/share/applications/gedit.desktop<br>
        $ xdg-open test.txt # opens with `less` instead of Gedit<br>
<br>
So instead of opening it with the configured Gedit, it is opened with<br>
the pager `less`.<br>
<br>
<br>
Thanks,<br>
<br>
Paul<br>
<br>_______________________________________________<br>
xdg mailing list<br>
<a href="mailto:xdg@lists.freedesktop.org">xdg@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/xdg" target="_blank">http://lists.freedesktop.org/mailman/listinfo/xdg</a><br>
<br></blockquote></div><br></div>