emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-protocol is bitrotting away
@ 2011-11-01 19:44 Florian Hars
  2011-11-02  0:34 ` Rafael
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Hars @ 2011-11-01 19:44 UTC (permalink / raw)
  To: emacs-orgmode

Of cousre my first error was to try to do something productive on a
current ubuntu, but since they have again broken the canonical way to
configure protocol handlers, 90% of all howtos describing how to
configure org-protocol plain don't work on ubuntu 11.10. gconftool
does no longer work, setting things in about:config in firefox has no
effect, the current season's incantantion is to put

[Desktop Entry]
Name=org-protocol
Exec=emacsclient %U
Type=Application
Terminal=false
Categories=System;
MimeType=x-scheme-handler/org-protocol;

into ~/.local/share/applications/org-protocol.desktop and then run
update-desktop-database .local/share/applications/ , as mentioned before:
http://permalink.gmane.org/gmane.emacs.orgmode/41733

More serious is the problen that firefox 7.0.1 steadfastly refuses
to set location.href to the URIs required by org-protocol, it throws
rather scary looking exceptions if the result of
encodeURIComponent(location.href) in the URI does not appear after a
question mark. I sort of got it working  by changing the URI to 
"org-protocol://capture://?x="+encodeURIComponent(l)+"/"+...
and then added the same three characters in
org-protocol-check-filename-for-protocol:
     (regexp-quote (plist-get (cdr prolist) :protocol)) ":/+\\(\\?x=\\)?")))

- Florian.

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

* Re: org-protocol is bitrotting away
  2011-11-01 19:44 org-protocol is bitrotting away Florian Hars
@ 2011-11-02  0:34 ` Rafael
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael @ 2011-11-02  0:34 UTC (permalink / raw)
  To: emacs-orgmode

Florian Hars <florian@hars.de> writes:

> Of cousre my first error was to try to do something productive on a
> current ubuntu, but since they have again broken the canonical way to
> configure protocol handlers, 90% of all howtos describing how to
> configure org-protocol plain don't work on ubuntu 11.10. gconftool
> does no longer work, setting things in about:config in firefox has no
> effect, the current season's incantantion is to put
>
> [Desktop Entry]
> Name=org-protocol
> Exec=emacsclient %U
> Type=Application
> Terminal=false
> Categories=System;
> MimeType=x-scheme-handler/org-protocol;
>
> into ~/.local/share/applications/org-protocol.desktop and then run
> update-desktop-database .local/share/applications/ , as mentioned before:
> http://permalink.gmane.org/gmane.emacs.orgmode/41733

Hmm. With Ubuntu 11.10 and Firefox that came with it, these steps were
not enough. I had Firefox asking for the application to open
org-protocol links, and choosing 'org-protocol' did not work, as it had
in Natty. However, choosing '/usr/bin/emacsclient' for the application,
worked for me.

> More serious is the problen that firefox 7.0.1 steadfastly refuses
> to set location.href to the URIs required by org-protocol, it throws
> rather scary looking exceptions if the result of
> encodeURIComponent(location.href) in the URI does not appear after a
> question mark. I sort of got it working  by changing the URI to 
> "org-protocol://capture://?x="+encodeURIComponent(l)+"/"+...
> and then added the same three characters in
> org-protocol-check-filename-for-protocol:
>      (regexp-quote (plist-get (cdr prolist) :protocol)) ":/+\\(\\?x=\\)?")))
>
> - Florian.

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

end of thread, other threads:[~2011-11-02  0:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-01 19:44 org-protocol is bitrotting away Florian Hars
2011-11-02  0:34 ` Rafael

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).