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