all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 14110@debbugs.gnu.org
Subject: bug#14110: 24.3.50; Add command to open files outside of Emacs (use xdg-open, open etc)
Date: Fri, 05 Apr 2013 10:28:01 +0530	[thread overview]
Message-ID: <878v4x1sme.fsf@gmail.com> (raw)
In-Reply-To: <83li8yf98m.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 04 Apr 2013 21:20:41 +0300")

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Jambunathan K <kjambunathan@gmail.com>
>> Date: Thu, 04 Apr 2013 23:22:37 +0530
>> Cc: 14110@debbugs.gnu.org
>> 
>> The alist is already maintained by the user's desktop (likely via
>> Explore->`Open with' -> `Always use this application for these files').
>> Emacs should at no point in time have any knowledge of this association.
>
> Emacs can easily know about the associations, at least on Windows.

On my Debian/Squeeze, this is what I have ended up with.

,----
| $ xdg-mime query filetype images/vanilla-emacs.png 
| image/png; charset=binary
`----

,----
| $ xdg-mime query default image/png
| gimp.desktop
`----

,----
| $ dpkg -L gimp | grep desktop
| /usr/lib/gimp/2.0/plug-ins/file-desktop-link
| /usr/share/applications/gimp.desktop
`----

,----
| $ cat /usr/share/applications/gimp.desktop | grep Exec
| Exec=gimp-2.6 %U
| TryExec=gimp-2.6
`----

,----
| $ gimp-
| gimp-2.6          gimp-console      gimp-console-2.6 
`----

There should be a way to go directly from *.desktop file to Exec entry.
I haven't figured it out or it is in the works.

Surprisingly, the above sequence fails for ODT files.

,----
| $ xdg-mime query filetype book.odt
| application/vnd.oasis.opendocument.text; charset=binary
`----

,----
| $ xdg-mime query default application/vnd.oasis.opendocument.text
| <NOTHING WHATSOEVER>
`----

I believe xdg-stuff is in it's initial stages and not so reliable at
this moment.





  reply	other threads:[~2013-04-05  4:58 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-01  6:57 bug#14110: 24.3.50; Add command to open files outside of Emacs (use xdg-open, open etc) Jambunathan K
2002-01-01  0:28 ` Jambunathan K
2013-04-01  7:42 ` Leo Liu
2013-04-01  8:06   ` Jambunathan K
2013-04-01 13:31     ` Leo Liu
2013-04-01 20:23       ` Jambunathan K
2013-04-04  1:08 ` Stefan Monnier
2013-04-04  3:25   ` Jambunathan K
2013-04-04 12:22     ` Stefan Monnier
2013-04-04 14:34       ` Jambunathan K
2013-04-04 16:24         ` Stefan Monnier
2013-04-04 17:52           ` Jambunathan K
2013-04-04 18:20             ` Eli Zaretskii
2013-04-05  4:58               ` Jambunathan K [this message]
2013-04-05  6:03               ` Thierry Volpiatto
2013-04-10  4:30                 ` Jambunathan K
2013-04-10  5:39                   ` Thierry Volpiatto
2013-04-05  6:53         ` Leo Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878v4x1sme.fsf@gmail.com \
    --to=kjambunathan@gmail.com \
    --cc=14110@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.