From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Problem with setting up org-protocol Date: Sat, 4 May 2013 23:41:20 +0200 Message-ID: <20130504234120.58f46323@aga-netbook> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/ONN2_qu54cYO7mTnTaZBd6I" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:40258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYkCt-00056c-8y for emacs-orgmode@gnu.org; Sat, 04 May 2013 17:41:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UYkCq-0002Jb-L6 for emacs-orgmode@gnu.org; Sat, 04 May 2013 17:41:27 -0400 Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:46353) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYkCq-0002JO-8S for emacs-orgmode@gnu.org; Sat, 04 May 2013 17:41:24 -0400 Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id 7765842065 for ; Sat, 4 May 2013 23:41:22 +0200 (CEST) Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eZUOHn4moW1k for ; Sat, 4 May 2013 23:41:22 +0200 (CEST) Received: from aga-netbook (jedenzero5-dziewiecosiem.echostar.pl [213.156.105.98]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 3873642062 for ; Sat, 4 May 2013 23:41:21 +0200 (CEST) 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: Org-mode mailing list --MP_/ONN2_qu54cYO7mTnTaZBd6I Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi list, I tried to set up org-protocol (Ubuntu 12.04) and failed. It seems that I'm not the only one with this problem - see http://stackoverflow.com/questions/7464951/how-to-make-org-protocol-work . I edited the relevant page on my clone of Worg (I attach the patch), but I'm not sure whether this is 100% correct: I guess it might only work for Gnome (I don't use KDE, so I can't check for that), and I'm not sure whether it's legal to just copy-paste from SO. What I'm sure is that (unlike the previous description on Worg) it works for me. Could anyone check that and update Worg accordingly? Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University --MP_/ONN2_qu54cYO7mTnTaZBd6I Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=0001-A-proper-description-of-setting-up-org-protocol.patch >From 44fe509fa9ac5a6a6d070e5b4df4efb40d5e7f04 Mon Sep 17 00:00:00 2001 From: Marcin Borkowski Date: Sat, 4 May 2013 23:31:48 +0200 Subject: [PATCH] A proper description of setting up org-protocol. Taken from this answer: http://stackoverflow.com/a/12751732/1181665 by user Mark. --- org-contrib/org-protocol.org | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/org-contrib/org-protocol.org b/org-contrib/org-protocol.org index e8419f2..088e33a 100644 --- a/org-contrib/org-protocol.org +++ b/org-contrib/org-protocol.org @@ -86,10 +86,22 @@ actions. Just register your custom sub-protocol and handler with the variable *** Linux setup (Gnome) - For this to work, you'll need the Gnome-Libraries to be installed. + (Instructions taken from [[http://stackoverflow.com/questions/7464951/how-to-make-org-protocol-work][this answer on StackOverflow]].) + + Create and save a file called org-protocol.desktop to ~/.local/share/applications containing: + + : [Desktop Entry] + : Name=org-protocol + : Exec=emacsclient %u + : Type=Application + : Terminal=false + : Categories=System; + : MimeType=x-scheme-handler/org-protocol; + + Then run: + + : $ update-desktop-database ~/.local/share/applications/ - : gconftool-2 -s /desktop/gnome/url-handlers/org-protocol/command '/usr/local/bin/emacsclient %s' --type String - : gconftool-2 -s /desktop/gnome/url-handlers/org-protocol/enabled --type Boolean true *** Linux setup (KDE) @@ -145,10 +157,6 @@ After installing EmacsClient.app you should then [[Verify the installation]]. On ***** Firefox If you are using Firefox on Mac OS X, see [[Mac OS X setup]]. - - Please refer to http://kb.mozillazine.org/Register_protocol and use - "org-protocol" as protocol. - # <> ***** Acrobat Reader :PROPERTIES: -- 1.7.9.5 --MP_/ONN2_qu54cYO7mTnTaZBd6I--