From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rafael Subject: Re: org-protocol is bitrotting away Date: Tue, 01 Nov 2011 18:34:26 -0600 Message-ID: <8739e7jral.fsf@gmail.com> References: <20111101194403.GA4130@keller.hars.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:43434) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLOmm-00048L-Tq for emacs-orgmode@gnu.org; Tue, 01 Nov 2011 20:34:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLOml-000656-Cj for emacs-orgmode@gnu.org; Tue, 01 Nov 2011 20:34:32 -0400 Received: from mail-yw0-f41.google.com ([209.85.213.41]:39826) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLOml-00064u-8i for emacs-orgmode@gnu.org; Tue, 01 Nov 2011 20:34:31 -0400 Received: by ywa17 with SMTP id 17so8872012ywa.0 for ; Tue, 01 Nov 2011 17:34:30 -0700 (PDT) In-Reply-To: <20111101194403.GA4130@keller.hars.de> (Florian Hars's message of "Tue, 1 Nov 2011 20:44:03 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Florian Hars writes: > Of cousre my first error was to try to do something productive on a > current ubuntu, but since they have again broken the canonical way to > configure protocol handlers, 90% of all howtos describing how to > configure org-protocol plain don't work on ubuntu 11.10. gconftool > does no longer work, setting things in about:config in firefox has no > effect, the current season's incantantion is to put > > [Desktop Entry] > Name=org-protocol > Exec=emacsclient %U > Type=Application > Terminal=false > Categories=System; > MimeType=x-scheme-handler/org-protocol; > > into ~/.local/share/applications/org-protocol.desktop and then run > update-desktop-database .local/share/applications/ , as mentioned before: > http://permalink.gmane.org/gmane.emacs.orgmode/41733 Hmm. With Ubuntu 11.10 and Firefox that came with it, these steps were not enough. I had Firefox asking for the application to open org-protocol links, and choosing 'org-protocol' did not work, as it had in Natty. However, choosing '/usr/bin/emacsclient' for the application, worked for me. > More serious is the problen that firefox 7.0.1 steadfastly refuses > to set location.href to the URIs required by org-protocol, it throws > rather scary looking exceptions if the result of > encodeURIComponent(location.href) in the URI does not appear after a > question mark. I sort of got it working by changing the URI to > "org-protocol://capture://?x="+encodeURIComponent(l)+"/"+... > and then added the same three characters in > org-protocol-check-filename-for-protocol: > (regexp-quote (plist-get (cdr prolist) :protocol)) ":/+\\(\\?x=\\)?"))) > > - Florian.