all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* cant get org-protocol right
@ 2014-08-04  0:53 Stefan Huchler
  2014-08-05  1:11 ` Stefan Huchler
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Huchler @ 2014-08-04  0:53 UTC (permalink / raw)
  To: emacs-orgmode

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!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-05  1:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-04  0:53 cant get org-protocol right Stefan Huchler
2014-08-05  1:11 ` Stefan Huchler

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.