From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Fantin Subject: Re: How to setup xdg for org-protocol ? Date: Mon, 12 Jul 2010 00:25:58 +0200 Message-ID: References: <871vbbb5op.fsf@gmx.de> <87mxtzi24y.wl%dmaus@ictsoc.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1615260643==" Return-path: Received: from [140.186.70.92] (port=36002 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OY4yb-0004xj-9F for emacs-orgmode@gnu.org; Sun, 11 Jul 2010 18:26:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OY4yZ-00008f-SA for emacs-orgmode@gnu.org; Sun, 11 Jul 2010 18:26:21 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:58094) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OY4yZ-00008Z-Kh for emacs-orgmode@gnu.org; Sun, 11 Jul 2010 18:26:19 -0400 Received: by eydd26 with SMTP id d26so535528eyd.0 for ; Sun, 11 Jul 2010 15:26:18 -0700 (PDT) In-Reply-To: <87mxtzi24y.wl%dmaus@ictsoc.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: David Maus Cc: emacs-orgmode@gnu.org --===============1615260643== Content-Type: multipart/alternative; boundary=0015174c0ddcfe770a048b241f8d --0015174c0ddcfe770a048b241f8d Content-Type: text/plain; charset=UTF-8 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 ... On Sat, Jul 10, 2010 at 9:10 PM, David Maus wrote: > Sebastian Rose wrote: > >Julien Fantin writes: > >> I've been struggling this morning trying to get org-protocol setup on my > >> linux box (via http://orgmode.org/worg/org-contrib/org-protocol.php) > >> > >> I can't get a web-browser to register org-protcol with emacsclient, as > I'm > >> not using a desktop environment (plain startx and openbox), I'm pretty > sure > >> this is an xdg config issue. > >> However, despite reading through the specs I couldn't fathom the proper > >> settings. > >> > >> In chromium, the external application comes up, and calls xdg-open > >> org-protocol://subprotocol/... which ends up firing a new chromium frame > >> > >> In firefox, I've tried setting network.protocol-handler.app.org-protocol > to > >> an empty string or my emacsclient path, anyhow I get the following error > >> message : > >> "Firefox doesn't know how to open this address, because the protocol > >> (org-protocol) isn't associated with any program" without showing any > >> external application selection dialog. > > > >Hi Julien, > > > >see > > > http://kb.mozillazine.org/Register_protocol#All_Firefox_versions_.28requires_certain_Gnome_libraries_to_be_installed.29 > > 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 > On Sat, Jul 10, 2010 at 9:10 PM, Da= vid Maus <dmaus@ictsoc.de> wrote:
Sebastian Rose wrote:
>Julien Fantin <julien.fantin@gmail.com> writes:
>> I've been struggling this morning trying to get org-protocol s= etup on my
>> linux box (via http://orgmode.org/worg/org-contrib/org-pro= tocol.php)
>>
>> I can't get a web-browser to register org-protcol with emacscl= ient, as I'm
>> not using a desktop environment (plain startx and openbox), I'= m pretty sure
>> this is an xdg config issue.
>> However, despite reading through the specs I couldn't fathom t= he proper
>> settings.
>>
>> In chromium, the external application comes up, and calls xdg-open=
>> org-protocol://subprotocol/... which ends up firing a new chromium= frame
>>
>> In firefox, I've tried setting network.protocol-handler.app.or= g-protocol to
>> an empty string or my emacsclient path, anyhow I get the following= error
>> message :
>> "Firefox doesn't know how to open this address, because t= he protocol
>> (org-protocol) isn't associated with any program" without= showing any
>> external application selection =C2=A0dialog.


>Hi Julien,


>see
>http://kb.mozillazine.org/Register_protocol#All_Firefox_versions_.28req= uires_certain_Gnome_libraries_to_be_installed.29

Or, of course "Firefox 3.5 specific (works without install= ed Gnome
libraries)". =C2=A0Worked fine for me (dwm), just one thing that is II= RC
not mentioned on Worg: You have to click on protocol link to set path
to emacsclient. =C2=A0E.g.

cat >> /tmp/test.html
<a href=3D"org-protocol:///>click</a>
^D

and open /tmp/test.html in Firefox.

HTH,
=C2=A0-- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@ja= bber.org
Email..... dmaus@ictso= c.de

--0015174c0ddcfe770a048b241f8d-- --===============1615260643== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1615260643==--