`xdg-open test.txt` uses `less` instead of configured application

Jerome Leclanche adys.wh at gmail.com
Sun Sep 30 10:37:51 PDT 2012


mimeapps.list only takes a desktop file name, not a full path. Try
text/plain=gedit.desktop;

J. Leclanche


On Sun, Sep 30, 2012 at 6:36 PM, Paul Menzel <
paulepanter at users.sourceforge.net> wrote:

> Dear freedesktop.org folks,
>
>
> using Debian Sid/unstable, trying to configure how to open files, I am
> having some problems.
>
>         $ xdg-mime --version
>         xdg-mime 1.1.0 rc1
>         $ xdg-mime query default text/plain
>         /usr/share/applications/gedit.desktop
>         $ echo text > test.txt
>         $ xdg-mime query filetype test.txt
>         text/plain
>         $ grep 'text/plain' ~/.local/share/applications/mimeapps.list
>         text/plain=/usr/share/applications/gedit.desktop
>         $ xdg-open test.txt # opens with `less` instead of Gedit
>
> So instead of opening it with the configured Gedit, it is opened with
> the pager `less`.
>
>
> Thanks,
>
> Paul
>
> _______________________________________________
> xdg mailing list
> xdg at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xdg
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/xdg/attachments/20120930/7a5a9909/attachment.html>


More information about the xdg mailing list