* adding new protocol handler in firefox
@ 2009-11-19 17:22 Thierry Volpiatto
2009-11-19 18:43 ` Sebastian Rose
0 siblings, 1 reply; 7+ messages in thread
From: Thierry Volpiatto @ 2009-11-19 17:22 UTC (permalink / raw)
To: emacs-orgmode
Hi,
if you use org-annotation-helper from firefox since a long time now, you
probably didn't notice that adding a new protocol handler in firefox as
it is described in org-annotation-helper.el is now impossible.
See https://bugzilla.mozilla.org/show_bug.cgi?id=529511
In addition to what is described in org-annotation-helper, you will need
to modify the file mimeTypes.rdf as described here:
http://tinyurl.com/yf37ukw
The example is for bookmarking from firefox to emacs bookmarks, but it
is the same for org. Just change emacsbookmark to remember and/or annotation.
--
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: adding new protocol handler in firefox
2009-11-19 17:22 adding new protocol handler in firefox Thierry Volpiatto
@ 2009-11-19 18:43 ` Sebastian Rose
2009-11-19 20:09 ` Sebastian Rose
0 siblings, 1 reply; 7+ messages in thread
From: Sebastian Rose @ 2009-11-19 18:43 UTC (permalink / raw)
To: Thierry Volpiatto; +Cc: emacs-orgmode
Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:
> Hi,
> if you use org-annotation-helper from firefox since a long time now, you
> probably didn't notice that adding a new protocol handler in firefox as
> it is described in org-annotation-helper.el is now impossible.
>
> See https://bugzilla.mozilla.org/show_bug.cgi?id=529511
>
> In addition to what is described in org-annotation-helper, you will need
> to modify the file mimeTypes.rdf as described here:
>
> http://tinyurl.com/yf37ukw
>
> The example is for bookmarking from firefox to emacs bookmarks, but it
> is the same for org. Just change emacsbookmark to remember and/or annotation.
Hi Thierry,
org-annotation-helper.el is abandoned since quite a while. It is part
(and basis) of org-protocol.el and not delivered with Org-mode anymore.
The way to install it is very similar to the way org-annotation-helper
was installed and is described here:
http://orgmode.org/worg/org-contrib/org-protocol.php
The install works that way for me. If you use the Gnome desktop and have
firefox-gnome-integration (not sure if name is correct for all distros)
installed, you should install new protocol handlers using gconf-editor.
Please report any problems you encounter.
Best wishes
Sebastian
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: adding new protocol handler in firefox
2009-11-19 18:43 ` Sebastian Rose
@ 2009-11-19 20:09 ` Sebastian Rose
2009-11-19 20:51 ` Thierry Volpiatto
2009-11-19 21:43 ` Robin Green
0 siblings, 2 replies; 7+ messages in thread
From: Sebastian Rose @ 2009-11-19 20:09 UTC (permalink / raw)
To: Thierry Volpiatto; +Cc: emacs-orgmode
Hi Thierry,
me again.
It seems they really want to remove the possibility to install protocol
handlers in FF directly. I wonder, why it still works here for FF 3.5,
but the bug-report is for FF 3.4.3 ??
Is that a development branch?
Well, anyway, editing RDF files by hand is not the way to go.
Instead, we should link to descriptions on how install the handlers
system wide. Some people reported they could use org-protocol from other
applications that way.
We already have an Windows installer on
http://orgmode.org/worg/org-contrib/org-protocol.php#sec-3.4
and we should add install scripts for other desktop environments, too.
It's trivial to do so for gnome (gconf, just two three lines of code)
but I'm not sure, if there's a better way. I think of freedesktop.org,
mime or something ?
I will check.
Thanks for the hint!
Sebastian
Sebastian Rose <sebastian_rose@gmx.de> writes:
> Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:
>> Hi,
>> if you use org-annotation-helper from firefox since a long time now, you
>> probably didn't notice that adding a new protocol handler in firefox as
>> it is described in org-annotation-helper.el is now impossible.
>>
>> See https://bugzilla.mozilla.org/show_bug.cgi?id=529511
>>
>> In addition to what is described in org-annotation-helper, you will need
>> to modify the file mimeTypes.rdf as described here:
>>
>> http://tinyurl.com/yf37ukw
>>
>> The example is for bookmarking from firefox to emacs bookmarks, but it
>> is the same for org. Just change emacsbookmark to remember and/or annotation.
>
>
> Hi Thierry,
>
>
> org-annotation-helper.el is abandoned since quite a while. It is part
> (and basis) of org-protocol.el and not delivered with Org-mode anymore.
>
> The way to install it is very similar to the way org-annotation-helper
> was installed and is described here:
>
> http://orgmode.org/worg/org-contrib/org-protocol.php
>
> The install works that way for me. If you use the Gnome desktop and have
> firefox-gnome-integration (not sure if name is correct for all distros)
> installed, you should install new protocol handlers using gconf-editor.
>
> Please report any problems you encounter.
>
>
>
> Best wishes
>
>
> Sebastian
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Sebastian Rose Fachinformatiker / Anwendungsentwicklung
Viktoriastr. 22 Entwicklung von Anwendungen mit freien Werkzeugen
30451 Hannover und Bibliotheken.
0173 83 93 417 sebastian_rose@gmx.de s.rose@emma-stil.de
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: adding new protocol handler in firefox
2009-11-19 20:09 ` Sebastian Rose
@ 2009-11-19 20:51 ` Thierry Volpiatto
2009-11-19 21:43 ` Robin Green
1 sibling, 0 replies; 7+ messages in thread
From: Thierry Volpiatto @ 2009-11-19 20:51 UTC (permalink / raw)
To: Sebastian Rose; +Cc: emacs-orgmode
Hi Sebastian,
thanks for your answer.
Sebastian Rose <sebastian_rose@gmx.de> writes:
> Hi Thierry,
>
>
> me again.
>
> It seems they really want to remove the possibility to install protocol
> handlers in FF directly. I wonder, why it still works here for FF 3.5,
> but the bug-report is for FF 3.4.3 ??
Yes, it seem they don't like users install protocols.
But as the removal of this feature create problems with thunderbird,
maybe they will do something for that.
> Is that a development branch?
>
>
> Well, anyway, editing RDF files by hand is not the way to go.
Agree, but i didn't find a better way to do.
I know nothing about the gnome stuff as i don't use it.
(i use gentoo with a stumpwm window manager)
We can easily setup a script that write config to this file (rdf) for a given
protocol.
What do you think?
> Instead, we should link to descriptions on how install the handlers
> system wide. Some people reported they could use org-protocol from other
> applications that way.
I recently used picasa and saw it have installed a picasa protocol
alone. How did it write to rdf file? i don't know.
I will have a look.
>
> We already have an Windows installer on
> http://orgmode.org/worg/org-contrib/org-protocol.php#sec-3.4
> and we should add install scripts for other desktop environments, too.
The problem of mime setting is not described here.
The protocol will fail with something like:
the protocol have no associated program ...
I don't understand why firefox do not read a mailcap file on the user system
or something similar (e.g /etc/mime.types)
> It's trivial to do so for gnome (gconf, just two three lines of code)
> but I'm not sure, if there's a better way. I think of freedesktop.org,
> mime or something ?
Setting things for firefox from desktop, gnome or whatever is no good
IMHO.
Firefox should have the old behavior of having the ability to setup a
protocol from firefox itself.
> I will check.
Me too, i will keep you informed on this list.
>
> Thanks for the hint!
>
>
> Sebastian
>
>
> Sebastian Rose <sebastian_rose@gmx.de> writes:
>> Thierry Volpiatto <thierry.volpiatto@gmail.com> writes:
>>> Hi,
>>> if you use org-annotation-helper from firefox since a long time now, you
>>> probably didn't notice that adding a new protocol handler in firefox as
>>> it is described in org-annotation-helper.el is now impossible.
>>>
>>> See https://bugzilla.mozilla.org/show_bug.cgi?id=529511
>>>
>>> In addition to what is described in org-annotation-helper, you will need
>>> to modify the file mimeTypes.rdf as described here:
>>>
>>> http://tinyurl.com/yf37ukw
>>>
>>> The example is for bookmarking from firefox to emacs bookmarks, but it
>>> is the same for org. Just change emacsbookmark to remember and/or annotation.
>>
>>
>> Hi Thierry,
>>
>>
>> org-annotation-helper.el is abandoned since quite a while. It is part
>> (and basis) of org-protocol.el and not delivered with Org-mode anymore.
>>
>> The way to install it is very similar to the way org-annotation-helper
>> was installed and is described here:
>>
>> http://orgmode.org/worg/org-contrib/org-protocol.php
>>
>> The install works that way for me. If you use the Gnome desktop and have
>> firefox-gnome-integration (not sure if name is correct for all distros)
>> installed, you should install new protocol handlers using gconf-editor.
>>
>> Please report any problems you encounter.
>>
>>
>>
>> Best wishes
>>
>>
>> Sebastian
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Remember: use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
--
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: adding new protocol handler in firefox
2009-11-19 20:09 ` Sebastian Rose
2009-11-19 20:51 ` Thierry Volpiatto
@ 2009-11-19 21:43 ` Robin Green
2009-11-20 22:01 ` Sebastian Rose
1 sibling, 1 reply; 7+ messages in thread
From: Robin Green @ 2009-11-19 21:43 UTC (permalink / raw)
To: emacs-orgmode
At Thu, 19 Nov 2009 21:09:21 +0100,
Sebastian Rose wrote:
> Well, anyway, editing RDF files by hand is not the way to go.
Indeed. This was the method that worked for me (thanks to "goncheff"
for discovering it):
1. In about:config, create a boolean key
"network.protocol-handler.expose.org-protocol" and set it to False
2. Create a simple web page containing a link to the URL org-protocol://test
3. Open the web page you just created
4. Click on the link
5. Choose emacsclient as the associated application in the dialog box
that appears
and no other method worked (although I didn't know about the "edit the RDF
file" method).
It isn't, of course, necessary to create a web page - you can use an
existing one with such a link - but it *is* necessary to click on a
link in a web page - selecting a bookmarklet no longer works in the
latest Firefox release, at least on Ubuntu 9.10 and on Mac OS X, and
probably elsewhere too.
-- cut here --
I guess I should create a patch to worg to include the above
instructions for newer versions of Firefox. Unless people think the
RDF editing method is better?
> Instead, we should link to descriptions on how install the handlers
> system wide.
Nice idea, but unfortunately on Linux (as far as I know) there is no
standard way to do that.
--
Robin
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: adding new protocol handler in firefox
2009-11-19 21:43 ` Robin Green
@ 2009-11-20 22:01 ` Sebastian Rose
2009-11-21 22:39 ` Thierry Volpiatto
0 siblings, 1 reply; 7+ messages in thread
From: Sebastian Rose @ 2009-11-20 22:01 UTC (permalink / raw)
To: Robin Green; +Cc: emacs-orgmode
Robin Green <greenrd@greenrd.org> writes:
> At Thu, 19 Nov 2009 21:09:21 +0100,
> Sebastian Rose wrote:
>> Well, anyway, editing RDF files by hand is not the way to go.
>
> Indeed. This was the method that worked for me (thanks to "goncheff"
> for discovering it):
>
> 1. In about:config, create a boolean key
> "network.protocol-handler.expose.org-protocol" and set it to False
> 2. Create a simple web page containing a link to the URL org-protocol://test
> 3. Open the web page you just created
> 4. Click on the link
> 5. Choose emacsclient as the associated application in the dialog box
> that appears
>
> and no other method worked (although I didn't know about the "edit the RDF
> file" method).
I guess you use a HG version of FF? Or 3.6?
Please, detailed information is necessary. Browser brand and version,
operating system, version, Org-mode version. Just saying "It did just
work like that" does not help - neither you nor us.
You know, it's quite a bit of work to verify the installations. I have
to remove the handlers, and add them again. I wanted to this, but it's
not possible in FF 3.5 on Ubuntu without research, which I will postpone
now in favor of finding a general solution.
Since there were no complaints about the installation procedure on worg,
I guess that it still is up to date for FF up to 3.5. At least it worked
for me on Debian testing and Ubuntu, with different FF versions up to
3.5.
> It isn't, of course, necessary to create a web page - you can use an
> existing one with such a link - but it *is* necessary to click on a
> link in a web page - selecting a bookmarklet no longer works in the
> latest Firefox release, at least on Ubuntu 9.10 and on Mac OS X, and
> probably elsewhere too.
Is it?
Well, there are two links for testing on worg:
http://orgmode.org/worg/org-contrib/org-protocol.php#test-org-protocol
Could be more prominent I guess....
> -- cut here --
>
> I guess I should create a patch to worg to include the above
> instructions for newer versions of Firefox. Unless people think the
> RDF editing method is better?
>> Instead, we should link to descriptions on how install the handlers
>> system wide.
>
> Nice idea, but unfortunately on Linux (as far as I know) there is no
> standard way to do that.
As for Mime types,
http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec?action=show&redirect=Standards%2Fshared-mime-info-spec
states:
The specification is now quite stable and not expected to change in
incompatible ways. Integration with icon themes has not been
finalized (and is not currently part of the specification).
* ROX has used the system since ROX-Filer 1.3.3 (July 2002).
* GTK has support since version 2.4 (Mar 2004).
* GNOME uses the system since version 2.8 (Sep 2004).
* XFCE uses the system since version 4.2.0 (Jan 2005).
* KDE uses the system since version 4.0 (Jan 2007).
* LXDE has used the system since the initial release of PCManFM (2005).
* EDE uses the system since version 2.0-alpha (Apr 2009, but implemented in May 2007).
Sounds general and standard enough. Hackers will help themselves (and
hopefully publish the solution on this list or worg).
Applications since years install themselves as handlers for certain Mime
types (e.g. the annoying Adobe products - sorry, product. They did not
manage to port more than the "Reader" to Linux yet). Something like this
should be possible for protocols, too.
What we need here is a general solution. The general solution, the
Mozilla people are willing to go, obviously. And I guess the solution
can be found at the X Desktop Group, e.g. on freedesktop.org, or simply
by asking the Mozilla guys. Not sure yet how Mime relates to protocols,
but I'm sure we will find a solution that works for 99% of GNU/Linux
users.
Sebastian
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: adding new protocol handler in firefox
2009-11-20 22:01 ` Sebastian Rose
@ 2009-11-21 22:39 ` Thierry Volpiatto
0 siblings, 0 replies; 7+ messages in thread
From: Thierry Volpiatto @ 2009-11-21 22:39 UTC (permalink / raw)
To: emacs-orgmode
Sebastian Rose <sebastian_rose@gmx.de> writes:
> Robin Green <greenrd@greenrd.org> writes:
>> At Thu, 19 Nov 2009 21:09:21 +0100,
>> Sebastian Rose wrote:
>>> Well, anyway, editing RDF files by hand is not the way to go.
>>
>> Indeed. This was the method that worked for me (thanks to "goncheff"
>> for discovering it):
>>
>> 1. In about:config, create a boolean key
>> "network.protocol-handler.expose.org-protocol" and set it to False
>> 2. Create a simple web page containing a link to the URL org-protocol://test
>> 3. Open the web page you just created
>> 4. Click on the link
>> 5. Choose emacsclient as the associated application in the dialog box
>> that appears
>>
>> and no other method worked (although I didn't know about the "edit the RDF
>> file" method).
>
>
> I guess you use a HG version of FF? Or 3.6?
>
> Please, detailed information is necessary. Browser brand and version,
> operating system, version, Org-mode version. Just saying "It did just
> work like that" does not help - neither you nor us.
>
> You know, it's quite a bit of work to verify the installations. I have
> to remove the handlers, and add them again. I wanted to this, but it's
> not possible in FF 3.5 on Ubuntu without research, which I will postpone
> now in favor of finding a general solution.
>
> Since there were no complaints about the installation procedure on worg,
> I guess that it still is up to date for FF up to 3.5. At least it worked
> for me on Debian testing and Ubuntu, with different FF versions up to
> 3.5.
>
>
>
>> It isn't, of course, necessary to create a web page - you can use an
>> existing one with such a link - but it *is* necessary to click on a
>> link in a web page - selecting a bookmarklet no longer works in the
>> latest Firefox release, at least on Ubuntu 9.10 and on Mac OS X, and
>> probably elsewhere too.
>
> Is it?
> Well, there are two links for testing on worg:
> http://orgmode.org/worg/org-contrib/org-protocol.php#test-org-protocol
>
> Could be more prominent I guess....
>
>
>> -- cut here --
>>
>> I guess I should create a patch to worg to include the above
>> instructions for newer versions of Firefox. Unless people think the
>> RDF editing method is better?
>
>>> Instead, we should link to descriptions on how install the handlers
>>> system wide.
>>
>> Nice idea, but unfortunately on Linux (as far as I know) there is no
>> standard way to do that.
>
> As for Mime types,
> http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec?action=show&redirect=Standards%2Fshared-mime-info-spec
> states:
>
> The specification is now quite stable and not expected to change in
> incompatible ways. Integration with icon themes has not been
> finalized (and is not currently part of the specification).
>
> * ROX has used the system since ROX-Filer 1.3.3 (July 2002).
> * GTK has support since version 2.4 (Mar 2004).
> * GNOME uses the system since version 2.8 (Sep 2004).
> * XFCE uses the system since version 4.2.0 (Jan 2005).
> * KDE uses the system since version 4.0 (Jan 2007).
> * LXDE has used the system since the initial release of PCManFM (2005).
> * EDE uses the system since version 2.0-alpha (Apr 2009, but implemented in May 2007).
>
>
> Sounds general and standard enough. Hackers will help themselves (and
> hopefully publish the solution on this list or worg).
>
> Applications since years install themselves as handlers for certain Mime
> types (e.g. the annoying Adobe products - sorry, product. They did not
> manage to port more than the "Reader" to Linux yet). Something like this
> should be possible for protocols, too.
>
> What we need here is a general solution. The general solution, the
> Mozilla people are willing to go, obviously. And I guess the solution
> can be found at the X Desktop Group, e.g. on freedesktop.org, or simply
> by asking the Mozilla guys. Not sure yet how Mime relates to protocols,
> but I'm sure we will find a solution that works for 99% of GNU/Linux
> users.
I agree that the solution come from the mozilla side.
Waiting a change in firefox,
i start writing code to add protocol handler from emacs.
It work fine here now.
I need to write the uninstaller also.
Have a look at:
http://mercurial.intuxication.org/hg/emacs-bookmark-extension
It install protocol if it not already exists or modify it as needed if
it exists.
To test it, save your ~/.mozilla somewhere.
(Re)Start firefox to recreate a new directory.
Stop it.
Now launch:
M-x firefox-protocol-installer-install
Add the protocol name (e.g org-protocol) and the path of file linked to
protocol.
Start firefox, your protocol should be now in preferences-->applications
>
>
> Sebastian
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
--
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-11-21 22:45 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-19 17:22 adding new protocol handler in firefox Thierry Volpiatto
2009-11-19 18:43 ` Sebastian Rose
2009-11-19 20:09 ` Sebastian Rose
2009-11-19 20:51 ` Thierry Volpiatto
2009-11-19 21:43 ` Robin Green
2009-11-20 22:01 ` Sebastian Rose
2009-11-21 22:39 ` Thierry Volpiatto
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).