From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Hars Subject: org-protocol is bitrotting away Date: Tue, 1 Nov 2011 20:44:03 +0100 Message-ID: <20111101194403.GA4130@keller.hars.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:48930) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLKFl-0007FO-2U for emacs-orgmode@gnu.org; Tue, 01 Nov 2011 15:44:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RLKFj-0004ye-QW for emacs-orgmode@gnu.org; Tue, 01 Nov 2011 15:44:09 -0400 Received: from moutng.kundenserver.de ([212.227.17.10]:61927) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RLKFj-0004yJ-E9 for emacs-orgmode@gnu.org; Tue, 01 Nov 2011 15:44:07 -0400 Received: from hars by keller.hars.de with local (Exim 4.72) (envelope-from ) id 1RLKFf-0001H0-Id for emacs-orgmode@gnu.org; Tue, 01 Nov 2011 20:44:03 +0100 Content-Disposition: inline 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 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 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.