From: Stefan Huchler <stefan.huchler@mail.de>
To: emacs-orgmode@gnu.org
Subject: cant get org-protocol right
Date: Mon, 04 Aug 2014 02:53:24 +0200 [thread overview]
Message-ID: <87lhr5xegr.fsf@mars.lan> (raw)
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!
next reply other threads:[~2014-08-04 0:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-04 0:53 Stefan Huchler [this message]
2014-08-05 1:11 ` cant get org-protocol right Stefan Huchler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lhr5xegr.fsf@mars.lan \
--to=stefan.huchler@mail.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.