From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Huchler Subject: cant get org-protocol right Date: Mon, 04 Aug 2014 02:53:24 +0200 Message-ID: <87lhr5xegr.fsf@mars.lan> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40223) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XE6Wz-0007jD-V3 for emacs-orgmode@gnu.org; Sun, 03 Aug 2014 20:53:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XE6Wv-0006S6-50 for emacs-orgmode@gnu.org; Sun, 03 Aug 2014 20:53:41 -0400 Received: from plane.gmane.org ([80.91.229.3]:51465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XE6Wu-0006S0-Uh for emacs-orgmode@gnu.org; Sun, 03 Aug 2014 20:53:37 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XE6Ws-0002qP-QG for emacs-orgmode@gnu.org; Mon, 04 Aug 2014 02:53:34 +0200 Received: from hsi-kbw-078-042-245-022.hsi3.kabel-badenwuerttemberg.de ([78.42.245.22]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 04 Aug 2014 02:53:34 +0200 Received: from stefan.huchler by hsi-kbw-078-042-245-022.hsi3.kabel-badenwuerttemberg.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 04 Aug 2014 02:53:34 +0200 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 I tried to setup here org-protocol with firefox, first the docu is very old does refer to gnome 2: http://orgmode.org/worg/org-contrib/org-protocol.html#sec-3-1 So after searching around I found a howto to make the protocol known by apps with a desktop file and the command update-desktop-database like descripted here: http://stackoverflow.com/questions/7464951/how-to-make-org-protocol-work I have following in my init.el: (require 'org-protocol) (setq org-protocol-default-template-key "l") (setq org-capture-templates '(("t" "Todo" entry (file+headline "~/notes/notes.org" "BLA") "* TODO %?\n %i\n %a") ("l" "Link" entry (file+olp "~/notes/notes.org" "Web Links") "* %a\n %?\n %i") its running in servermode. If I call it manually at least with org-capture links it works like excepted: emacsclient org-protocol://capture://http://slash.org/ I get a capture buffer and can add that url and it gets added. Now the strange behaviour, with that desktop file I got firefox to ask at least for a programm if I enter there such a url, and I choose org-protocol, what I get as choice from the desktop file. But then nothing happens in emacs. So again pasting this url into epiphany, emacs opens a new file buffer with the name: "~org-protocol:/capture/http:/slash.org/" (its a fundamental buffer) So I dont know why but I tried the same link in epiphany a bit different: org-protocol:/capture://slash.org so removing one of the slashes after org-protocol helps also he doesnt like the http:// in the string. So do u think thats a gnome bug (I am using fedora 20 with the gnome COPR). here is my org-protocol.desktop file: [Desktop Entry] Name=org-protocol Exec=emacsclient '%u' Type=Application Terminal=false Categories=System; MimeType=x-scheme-handler/org-protocol; thanx for any advise!