* How to setup xdg for org-protocol ?
@ 2010-07-10 13:44 Julien Fantin
2010-07-10 17:03 ` Sebastian Rose
2010-07-10 17:28 ` Sebastian Rose
0 siblings, 2 replies; 8+ messages in thread
From: Julien Fantin @ 2010-07-10 13:44 UTC (permalink / raw
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 930 bytes --]
I've been struggling this morning trying to get org-protocol setup on my
linux box (via http://orgmode.org/worg/org-contrib/org-protocol.php)
I can't get a web-browser to register org-protcol with emacsclient, as I'm
not using a desktop environment (plain startx and openbox), I'm pretty sure
this is an xdg config issue.
However, despite reading through the specs I couldn't fathom the proper
settings.
In chromium, the external application comes up, and calls xdg-open
org-protocol://subprotocol/... which ends up firing a new chromium frame
In firefox, I've tried setting network.protocol-handler.app.org-protocol to
an empty string or my emacsclient path, anyhow I get the following error
message :
"Firefox doesn't know how to open this address, because the protocol
(org-protocol) isn't associated with any program" without showing any
external application selection dialog.
Has anyone already adressed this ?
Cheers
[-- Attachment #1.2: Type: text/html, Size: 1216 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: How to setup xdg for org-protocol ?
2010-07-10 13:44 How to setup xdg for org-protocol ? Julien Fantin
@ 2010-07-10 17:03 ` Sebastian Rose
2010-07-10 17:28 ` Sebastian Rose
1 sibling, 0 replies; 8+ messages in thread
From: Sebastian Rose @ 2010-07-10 17:03 UTC (permalink / raw
To: Julien Fantin; +Cc: emacs-orgmode
Julien Fantin <julien.fantin@gmail.com> writes:
> I've been struggling this morning trying to get org-protocol setup on my
> linux box (via http://orgmode.org/worg/org-contrib/org-protocol.php)
>
> I can't get a web-browser to register org-protcol with emacsclient, as I'm
> not using a desktop environment (plain startx and openbox), I'm pretty sure
> this is an xdg config issue.
> However, despite reading through the specs I couldn't fathom the proper
> settings.
>
> In chromium, the external application comes up, and calls xdg-open
> org-protocol://subprotocol/... which ends up firing a new chromium frame
>
> In firefox, I've tried setting network.protocol-handler.app.org-protocol to
> an empty string or my emacsclient path, anyhow I get the following error
> message :
> "Firefox doesn't know how to open this address, because the protocol
> (org-protocol) isn't associated with any program" without showing any
> external application selection dialog.
>
>
> Has anyone already adressed this ?
First of all:
Seems you have tried
http://orgmode.org/worg/org-contrib/org-protocol.php#sec-3_1
already?? Current versions of FF do not work like that anymore.
I don't use xdg. But I think xdg-mime is what your searching for?
I you succeed, would you please mail a recipe, so we can add it to
http://orgmode.org/worg/org-contrib/org-protocol.php
??
Sebastian
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: How to setup xdg for org-protocol ?
2010-07-10 13:44 How to setup xdg for org-protocol ? Julien Fantin
2010-07-10 17:03 ` Sebastian Rose
@ 2010-07-10 17:28 ` Sebastian Rose
2010-07-10 19:10 ` David Maus
1 sibling, 1 reply; 8+ messages in thread
From: Sebastian Rose @ 2010-07-10 17:28 UTC (permalink / raw
To: Julien Fantin; +Cc: emacs-orgmode
Julien Fantin <julien.fantin@gmail.com> writes:
> I've been struggling this morning trying to get org-protocol setup on my
> linux box (via http://orgmode.org/worg/org-contrib/org-protocol.php)
>
> I can't get a web-browser to register org-protcol with emacsclient, as I'm
> not using a desktop environment (plain startx and openbox), I'm pretty sure
> this is an xdg config issue.
> However, despite reading through the specs I couldn't fathom the proper
> settings.
>
> In chromium, the external application comes up, and calls xdg-open
> org-protocol://subprotocol/... which ends up firing a new chromium frame
>
> In firefox, I've tried setting network.protocol-handler.app.org-protocol to
> an empty string or my emacsclient path, anyhow I get the following error
> message :
> "Firefox doesn't know how to open this address, because the protocol
> (org-protocol) isn't associated with any program" without showing any
> external application selection dialog.
Hi Julien,
see
http://kb.mozillazine.org/Register_protocol#All_Firefox_versions_.28requires_certain_Gnome_libraries_to_be_installed.29
HTH
Sebastian
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: How to setup xdg for org-protocol ?
2010-07-10 17:28 ` Sebastian Rose
@ 2010-07-10 19:10 ` David Maus
2010-07-11 22:25 ` Julien Fantin
0 siblings, 1 reply; 8+ messages in thread
From: David Maus @ 2010-07-10 19:10 UTC (permalink / raw
To: Sebastian Rose; +Cc: emacs-orgmode, Julien Fantin
[-- Attachment #1.1: Type: text/plain, Size: 1582 bytes --]
Sebastian Rose wrote:
>Julien Fantin <julien.fantin@gmail.com> writes:
>> I've been struggling this morning trying to get org-protocol setup on my
>> linux box (via http://orgmode.org/worg/org-contrib/org-protocol.php)
>>
>> I can't get a web-browser to register org-protcol with emacsclient, as I'm
>> not using a desktop environment (plain startx and openbox), I'm pretty sure
>> this is an xdg config issue.
>> However, despite reading through the specs I couldn't fathom the proper
>> settings.
>>
>> In chromium, the external application comes up, and calls xdg-open
>> org-protocol://subprotocol/... which ends up firing a new chromium frame
>>
>> In firefox, I've tried setting network.protocol-handler.app.org-protocol to
>> an empty string or my emacsclient path, anyhow I get the following error
>> message :
>> "Firefox doesn't know how to open this address, because the protocol
>> (org-protocol) isn't associated with any program" without showing any
>> external application selection dialog.
>Hi Julien,
>see
>http://kb.mozillazine.org/Register_protocol#All_Firefox_versions_.28requires_certain_Gnome_libraries_to_be_installed.29
Or, of course "Firefox 3.5 specific (works without installed Gnome
libraries)". Worked fine for me (dwm), just one thing that is IIRC
not mentioned on Worg: You have to click on protocol link to set path
to emacsclient. E.g.
cat >> /tmp/test.html
<a href="org-protocol:///>click</a>
^D
and open /tmp/test.html in Firefox.
HTH,
-- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de
[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: How to setup xdg for org-protocol ?
2010-07-10 19:10 ` David Maus
@ 2010-07-11 22:25 ` Julien Fantin
2010-07-12 9:35 ` Sebastian Rose
0 siblings, 1 reply; 8+ messages in thread
From: Julien Fantin @ 2010-07-11 22:25 UTC (permalink / raw
To: David Maus; +Cc: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 1990 bytes --]
Thanks Sebastian and David,
I now have firefox working, I had to use that html file though, as firefox
wouldn't bring up the application selection dialog with the test links on
worg.
Will now look into getting xdg-mime to work for chromium ...
On Sat, Jul 10, 2010 at 9:10 PM, David Maus <dmaus@ictsoc.de> wrote:
> Sebastian Rose wrote:
> >Julien Fantin <julien.fantin@gmail.com> writes:
> >> I've been struggling this morning trying to get org-protocol setup on my
> >> linux box (via http://orgmode.org/worg/org-contrib/org-protocol.php)
> >>
> >> I can't get a web-browser to register org-protcol with emacsclient, as
> I'm
> >> not using a desktop environment (plain startx and openbox), I'm pretty
> sure
> >> this is an xdg config issue.
> >> However, despite reading through the specs I couldn't fathom the proper
> >> settings.
> >>
> >> In chromium, the external application comes up, and calls xdg-open
> >> org-protocol://subprotocol/... which ends up firing a new chromium frame
> >>
> >> In firefox, I've tried setting network.protocol-handler.app.org-protocol
> to
> >> an empty string or my emacsclient path, anyhow I get the following error
> >> message :
> >> "Firefox doesn't know how to open this address, because the protocol
> >> (org-protocol) isn't associated with any program" without showing any
> >> external application selection dialog.
>
>
> >Hi Julien,
>
>
> >see
> >
> http://kb.mozillazine.org/Register_protocol#All_Firefox_versions_.28requires_certain_Gnome_libraries_to_be_installed.29
>
> Or, of course "Firefox 3.5 specific (works without installed Gnome
> libraries)". Worked fine for me (dwm), just one thing that is IIRC
> not mentioned on Worg: You have to click on protocol link to set path
> to emacsclient. E.g.
>
> cat >> /tmp/test.html
> <a href="org-protocol:///>click</a>
> ^D
>
> and open /tmp/test.html in Firefox.
>
> HTH,
> -- David
> --
> OpenPGP... 0x99ADB83B5A4478E6
> Jabber.... dmjena@jabber.org
> Email..... dmaus@ictsoc.de
>
[-- Attachment #1.2: Type: text/html, Size: 3121 bytes --]
[-- Attachment #2: Type: text/plain, Size: 201 bytes --]
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: How to setup xdg for org-protocol ?
2010-07-11 22:25 ` Julien Fantin
@ 2010-07-12 9:35 ` Sebastian Rose
2010-07-13 12:12 ` Sébastien Vauban
0 siblings, 1 reply; 8+ messages in thread
From: Sebastian Rose @ 2010-07-12 9:35 UTC (permalink / raw
To: Julien Fantin; +Cc: emacs-orgmode
Julien Fantin <julien.fantin@gmail.com> writes:
> Thanks Sebastian and David,
> I now have firefox working, I had to use that html file though, as firefox
> wouldn't bring up the application selection dialog with the test links on
> worg.
> Will now look into getting xdg-mime to work for chromium ...
>> Or, of course "Firefox 3.5 specific (works without installed Gnome
>> libraries)". Worked fine for me (dwm), just one thing that is IIRC
>> not mentioned on Worg: You have to click on protocol link to set path
>> to emacsclient. E.g.
>>
>> cat >> /tmp/test.html
>> <a href="org-protocol:///>click</a>
>> ^D
>>
>> and open /tmp/test.html in Firefox.
Such links are on the dokumentation page in worg:
http://orgmode.org/worg/org-contrib/org-protocol.php#sec-3_5
Was it the mouse click, that made it work?
If so, I could add a note on that page `for FF 3.5 click on one of these
links ...'.
Sebastian
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: How to setup xdg for org-protocol ?
2010-07-12 9:35 ` Sebastian Rose
@ 2010-07-13 12:12 ` Sébastien Vauban
2010-07-15 10:52 ` Sebastian Rose
0 siblings, 1 reply; 8+ messages in thread
From: Sébastien Vauban @ 2010-07-13 12:12 UTC (permalink / raw
To: emacs-orgmode-mXXj517/zsQ
Hi Sebastian,
Sebastian Rose wrote:
> Julien Fantin <julien.fantin-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>> Thanks Sebastian and David,
>> I now have firefox working, I had to use that html file though, as firefox
>> wouldn't bring up the application selection dialog with the test links on
>> worg.
>> Will now look into getting xdg-mime to work for chromium ...
>>> Or, of course "Firefox 3.5 specific (works without installed Gnome
>>> libraries)". Worked fine for me (dwm), just one thing that is IIRC
>>> not mentioned on Worg: You have to click on protocol link to set path
>>> to emacsclient. E.g.
>>>
>>> cat >> /tmp/test.html
>>> <a href="org-protocol:///>click</a>
>>> ^D
>>>
>>> and open /tmp/test.html in Firefox.
>
> Such links are on the dokumentation page in worg:
>
> http://orgmode.org/worg/org-contrib/org-protocol.php#sec-3_5
>
> Was it the mouse click, that made it work?
>
> If so, I could add a note on that page `for FF 3.5 click on one of these
> links ...'.
I had the same problem this morning, with latest FFx on latest Ubuntu.
I never had the window asking for which application to launch when clicking on
a `org-protocol://' link...
until I re-did the manipulation with:
--8<---------------cut here---------------start------------->8---
gconftool-2 -s /desktop/gnome/url-handlers/org-protocol/command '/usr/bin/emacsclient %s' --type String
gconftool-2 -s /desktop/gnome/url-handlers/org-protocol/enabled --type Boolean true
--8<---------------cut here---------------end--------------->8---
(described on http://kb.mozillazine.org/Register_protocol#All_Firefox_versions_.28requires_certain_Gnome_libraries_to_be_installed.29)
"Next time you click a link of protocol-type foo you will be asked which
application to open it with." : for me, after the above step (`gconftool-2'),
just entering `org-protocol://' in a new tab was sufficient to ask, this time,
for which application to run. Finally...
Not that intuitive...
Best regards,
Seb
--
Sébastien Vauban
_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Re: How to setup xdg for org-protocol ?
2010-07-13 12:12 ` Sébastien Vauban
@ 2010-07-15 10:52 ` Sebastian Rose
0 siblings, 0 replies; 8+ messages in thread
From: Sebastian Rose @ 2010-07-15 10:52 UTC (permalink / raw
To: Sébastien Vauban; +Cc: emacs-orgmode
Sébastien Vauban <wxhgmqzgwmuf@spammotel.com> writes:
> Hi Sebastian,
>
> Sebastian Rose wrote:
>> Julien Fantin <julien.fantin@gmail.com> writes:
>>> Thanks Sebastian and David,
>>> I now have firefox working, I had to use that html file though, as firefox
>>> wouldn't bring up the application selection dialog with the test links on
>>> worg.
>>> Will now look into getting xdg-mime to work for chromium ...
>>>> Or, of course "Firefox 3.5 specific (works without installed Gnome
>>>> libraries)". Worked fine for me (dwm), just one thing that is IIRC
>>>> not mentioned on Worg: You have to click on protocol link to set path
>>>> to emacsclient. E.g.
>>>>
>>>> cat >> /tmp/test.html
>>>> <a href="org-protocol:///>click</a>
>>>> ^D
>>>>
>>>> and open /tmp/test.html in Firefox.
>>
>> Such links are on the dokumentation page in worg:
>>
>> http://orgmode.org/worg/org-contrib/org-protocol.php#sec-3_5
>>
>> Was it the mouse click, that made it work?
>>
>> If so, I could add a note on that page `for FF 3.5 click on one of these
>> links ...'.
>
> I had the same problem this morning, with latest FFx on latest Ubuntu.
>
> I never had the window asking for which application to launch when clicking on
> a `org-protocol://' link...
>
> until I re-did the manipulation with:
>
>
> gconftool-2 -s /desktop/gnome/url-handlers/org-protocol/command '/usr/bin/emacsclient %s' --type String
> gconftool-2 -s /desktop/gnome/url-handlers/org-protocol/enabled --type Boolean true
>
> (described on http://kb.mozillazine.org/Register_protocol#All_Firefox_versions_.28requires_certain_Gnome_libraries_to_be_installed.29)
>
> "Next time you click a link of protocol-type foo you will be asked which
> application to open it with." : for me, after the above step (`gconftool-2'),
> just entering `org-protocol://' in a new tab was sufficient to ask, this time,
> for which application to run. Finally...
OK then. I'll adjust the docs this evening accordingly.
Thanks for your reports.
Best wishes
Sebastian
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-07-15 10:52 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-10 13:44 How to setup xdg for org-protocol ? Julien Fantin
2010-07-10 17:03 ` Sebastian Rose
2010-07-10 17:28 ` Sebastian Rose
2010-07-10 19:10 ` David Maus
2010-07-11 22:25 ` Julien Fantin
2010-07-12 9:35 ` Sebastian Rose
2010-07-13 12:12 ` Sébastien Vauban
2010-07-15 10:52 ` Sebastian Rose
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.