emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sébastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: How to setup xdg for org-protocol ?
Date: Tue, 13 Jul 2010 14:12:47 +0200	[thread overview]
Message-ID: <871vb7d1hc.fsf@mundaneum.com> (raw)
In-Reply-To: 878w5h59fu.fsf@gmx.de

Hi Sebastian,

Sebastian Rose wrote:
> Julien Fantin <julien.fantin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>> Thanks Sebastian and David,
>> I now have firefox working, I had to use that html file though, as firefox
>> wouldn't bring up the application selection dialog with the test links on
>> worg.
>> Will now look into getting xdg-mime to work for chromium ...
>>> Or, of course "Firefox 3.5 specific (works without installed Gnome
>>> libraries)".  Worked fine for me (dwm), just one thing that is IIRC
>>> not mentioned on Worg: You have to click on protocol link to set path
>>> to emacsclient.  E.g.
>>>
>>> cat >> /tmp/test.html
>>> <a href="org-protocol:///>click</a>
>>> ^D
>>>
>>> and open /tmp/test.html in Firefox.
>
> Such links are on the dokumentation page in worg:
>
>    http://orgmode.org/worg/org-contrib/org-protocol.php#sec-3_5
>
> Was it the mouse click, that made it work?
>
> If so, I could add a note on that page `for FF 3.5 click on one of these
> links ...'.

I had the same problem this morning, with latest FFx on latest Ubuntu.

I never had the window asking for which application to launch when clicking on
a `org-protocol://' link...

until I re-did the manipulation with:

--8<---------------cut here---------------start------------->8---
gconftool-2 -s /desktop/gnome/url-handlers/org-protocol/command '/usr/bin/emacsclient %s' --type String
gconftool-2 -s /desktop/gnome/url-handlers/org-protocol/enabled --type Boolean true
--8<---------------cut here---------------end--------------->8---

(described on http://kb.mozillazine.org/Register_protocol#All_Firefox_versions_.28requires_certain_Gnome_libraries_to_be_installed.29)

"Next time you click a link of protocol-type foo you will be asked which
application to open it with." : for me, after the above step (`gconftool-2'),
just entering `org-protocol://' in a new tab was sufficient to ask, this time,
for which application to run. Finally...

Not that intuitive...

Best regards,
  Seb

-- 
Sébastien Vauban


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2010-07-13 12:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-10 13:44 How to setup xdg for org-protocol ? Julien Fantin
2010-07-10 17:03 ` Sebastian Rose
2010-07-10 17:28 ` Sebastian Rose
2010-07-10 19:10   ` David Maus
2010-07-11 22:25     ` Julien Fantin
2010-07-12  9:35       ` Sebastian Rose
2010-07-13 12:12         ` Sébastien Vauban [this message]
2010-07-15 10:52           ` Sebastian Rose

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=871vb7d1hc.fsf@mundaneum.com \
    --to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).